1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 02:13:56 +09:00
ladybird/DevTools/HackStudio
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
..
Debugger HackStudio: Use new format functions. 2020-10-09 20:52:17 +02:00
Git HackStudio: Use new format functions. 2020-10-09 20:52:17 +02:00
LanguageClients HackStudio: Add a Shell language server 2020-10-04 23:12:28 +02:00
LanguageServers LanguageServers/Cpp: Find the right token under the cursor 2020-10-29 23:32:18 +01:00
AutoCompleteBox.cpp HackStudio: Relay completions requests to the language server unfiltered 2020-10-04 23:12:28 +02:00
AutoCompleteBox.h HackStudio: Relay completions requests to the language server unfiltered 2020-10-04 23:12:28 +02:00
AutoCompleteResponse.h HackStudio: Relay completions requests to the language server unfiltered 2020-10-04 23:12:28 +02:00
CMakeLists.txt HackStudio: Remove ProcessStateWidget 2020-10-29 23:40:20 +01:00
CodeDocument.cpp HackStudio: Integrate with C++ Language Server 2020-09-30 21:46:59 +02:00
CodeDocument.h HackStudio: Integrate with C++ Language Server 2020-09-30 21:46:59 +02:00
CursorTool.cpp HackStudio: Use new format functions. 2020-10-09 20:52:17 +02:00
CursorTool.h HackStudio: Move everything into the HackStudio namespace 2020-08-17 18:05:35 +02:00
Editor.cpp AK: Make RefPtr, NonnullRefPtr, WeakPtr thread safe 2020-11-10 19:11:52 +01:00
Editor.h HackStudio: Don't track ctrl key state manually 2020-10-29 23:32:18 +01:00
EditorWrapper.cpp HackStudio: Use new format functions. 2020-10-09 20:52:17 +02:00
EditorWrapper.h HackStudio: Integrate with C++ Language Server 2020-09-30 21:46:59 +02:00
FindInFilesWidget.cpp Meta+DevTools: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
FindInFilesWidget.h Meta+DevTools: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
FormEditorWidget.cpp HackStudio: Move everything into the HackStudio namespace 2020-08-17 18:05:35 +02:00
FormEditorWidget.h HackStudio: Move everything into the HackStudio namespace 2020-08-17 18:05:35 +02:00
FormWidget.cpp LibGUI: Add Widget focus policies 2020-10-30 17:03:28 +01:00
FormWidget.h LibGUI: Add Widget focus policies 2020-10-30 17:03:28 +01:00
HackStudio.h HackStudio: Abstract away language-server details 2020-10-02 20:47:57 +02:00
HackStudioWidget.cpp HackStudio: Scroll embedded terminals to bottom upon command execution 2020-11-10 11:55:18 +01:00
HackStudioWidget.h HackStudio: Run clang-format 2020-11-03 13:40:24 +01:00
Language.h HackStudio: Integrate with C++ Language Server 2020-09-30 21:46:59 +02:00
LanguageClient.cpp HackStudio: Relay completions requests to the language server unfiltered 2020-10-04 23:12:28 +02:00
LanguageClient.h HackStudio: Relay completions requests to the language server unfiltered 2020-10-04 23:12:28 +02:00
Locator.cpp HackStudio: Use new format functions. 2020-10-09 20:52:17 +02:00
Locator.h HackStudio: Move everything into the HackStudio namespace 2020-08-17 18:05:35 +02:00
main.cpp HackStudio: Abstract away language-server details 2020-10-02 20:47:57 +02:00
Project.cpp AK: Rename new_out to out and new_warn to warn. 2020-11-09 16:21:29 +01:00
Project.h HackStudio: Add a simple "open files" view 2020-10-26 14:29:26 +01:00
ProjectFile.cpp HackStudio: Store and restore the scrollbar values of ProjectFiles when they are closed and reopened from the list of open files. 2020-11-03 13:34:38 +01:00
ProjectFile.h HackStudio: Run clang-format 2020-11-03 13:40:24 +01:00
TerminalWrapper.cpp HackStudio: Scroll embedded terminals to bottom upon command execution 2020-11-10 11:55:18 +01:00
TerminalWrapper.h HackStudio: Scroll embedded terminals to bottom upon command execution 2020-11-10 11:55:18 +01:00
Tool.h Meta: Force semi-colon after MAKE_AK_NONXXXABLE() 2020-08-27 10:12:04 +02:00
WidgetTool.cpp HackStudio: Use new format functions. 2020-10-09 20:52:17 +02:00
WidgetTool.h HackStudio: Move everything into the HackStudio namespace 2020-08-17 18:05:35 +02:00
WidgetTreeModel.cpp HackStudio: Use new format functions. 2020-10-09 20:52:17 +02:00
WidgetTreeModel.h HackStudio: Move everything into the HackStudio namespace 2020-08-17 18:05:35 +02:00