ladybird/Applications
Tom 75f61fe3d9 AK: Make RefPtr, NonnullRefPtr, WeakPtr thread safe
This makes most operations thread safe, especially so that they
can safely be used in the Kernel. This includes obtaining a strong
reference from a weak reference, which now requires an explicit
call to WeakPtr::strong_ref(). Another major change is that
Weakable::make_weak_ref() may require the explicit target type.
Previously we used reinterpret_cast in WeakPtr, assuming that it
can be properly converted. But WeakPtr does not necessarily have
the knowledge to be able to do this. Instead, we now ask the class
itself to deliver a WeakPtr to the type that we want.

Also, WeakLink is no longer specific to a target type. The reason
for this is that we want to be able to safely convert e.g. WeakPtr<T>
to WeakPtr<U>, and before this we just reinterpret_cast the internal
WeakLink<T> to WeakLink<U>, which is a bold assumption that it would
actually produce the correct code. Instead, WeakLink now operates
on just a raw pointer and we only make those constructors/operators
available if we can verify that it can be safely cast.

In order to guarantee thread safety, we now use the least significant
bit in the pointer for locking purposes. This also means that only
properly aligned pointers can be used.
2020-11-10 19:11:52 +01:00
..
About Applications: Use GUI::Icon::default_icon to set application icon 2020-11-02 21:06:17 +01:00
Browser Applications: Use GUI::Icon::default_icon to set application icon 2020-11-02 21:06:17 +01:00
Calculator Applications: Use GUI::Icon::default_icon to set application icon 2020-11-02 21:06:17 +01:00
Calendar Calendar: Use format instead of printf. 2020-10-05 14:19:24 +02:00
Debugger AK: Rename new_out to out and new_warn to warn. 2020-11-09 16:21:29 +01:00
DisplaySettings Applications: Use GUI::Icon::default_icon to set application icon 2020-11-02 21:06:17 +01:00
FileManager FileManager: Ignore model updates during widget construction 2020-10-22 18:52:54 +02:00
FontEditor Applications: Use GUI::CommonActions for save and save as menu options 2020-11-02 13:14:58 +01:00
Help Help: Replace InProcessWebView with OutOfProcessWebView 2020-10-08 23:20:52 +02:00
HexEditor Applications: Use GUI::Icon::default_icon to set application icon 2020-11-02 21:06:17 +01:00
IRCClient Applications: Use pledge and unveil 2020-11-02 22:36:27 +01:00
KeyboardMapper Applications: Use pledge and unveil 2020-11-02 22:36:27 +01:00
KeyboardSettings KeyboardSettings: Use new format functions. 2020-10-06 15:28:39 +02:00
Piano Applications: Use pledge and unveil 2020-11-02 22:36:27 +01:00
PixelPaint AK: Make RefPtr, NonnullRefPtr, WeakPtr thread safe 2020-11-10 19:11:52 +01:00
QuickShow Applications: Use GUI::Icon::default_icon to set application icon 2020-11-02 21:06:17 +01:00
SoundPlayer Applications: Use GUI::Icon::default_icon to set application icon 2020-11-02 21:06:17 +01:00
Spreadsheet AK: Make RefPtr, NonnullRefPtr, WeakPtr thread safe 2020-11-10 19:11:52 +01:00
SystemMonitor Applications: Use GUI::Icon::default_icon to set application icon 2020-11-02 21:06:17 +01:00
Terminal Applications: Use GUI::Icon::default_icon to set application icon 2020-11-02 21:06:17 +01:00
TextEditor Applications: Use GUI::Icon::default_icon to set application icon 2020-11-02 21:06:17 +01:00
ThemeEditor Applications: Use pledge and unveil 2020-11-02 22:36:27 +01:00
Welcome Welcome: Use new format functions. 2020-10-06 20:29:26 +02:00
CMakeLists.txt ChessEngine: Move from Applications to Services 2020-08-28 12:53:02 +02:00