1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 17:44:56 +09:00
ladybird/Applications/Spreadsheet
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
..
CellType LibJS: Remove js_string(Interpreter&, ...) 2020-09-27 20:26:58 +02:00
Cell.cpp Everywhere: Add missing <AK/TemporaryChange.h> includes 2020-10-15 23:49:53 +02:00
Cell.h Spreadsheet: Let the cells know their own position in the sheet 2020-09-28 17:41:48 +02:00
CellSyntaxHighlighter.cpp Spreadsheet: Add a syntax highlighter to the cell editor 2020-08-24 19:15:07 +02:00
CellSyntaxHighlighter.h Spreadsheet: Add a syntax highlighter to the cell editor 2020-08-24 19:15:07 +02:00
CellTypeDialog.cpp Applications: Use application icons for dialog windows 2020-10-31 13:48:15 +01:00
CellTypeDialog.h Spreadsheet: Add conditional formatting 2020-09-25 23:55:33 +02:00
CMakeLists.txt Spreadsheet: Add the 'Date' cell type 2020-09-25 23:55:33 +02:00
CondFormatting.json Spreadsheet: Add conditional formatting 2020-09-25 23:55:33 +02:00
ConditionalFormatting.h Spreadsheet: Add conditional formatting 2020-09-25 23:55:33 +02:00
CondView.json Spreadsheet: Add conditional formatting 2020-09-25 23:55:33 +02:00
Forward.h Spreadsheet: Add conditional formatting 2020-09-25 23:55:33 +02:00
HelpWindow.cpp Spreadsheet: Add support for example views and hyperlinks in the docs 2020-10-31 15:40:13 +01:00
HelpWindow.h Spreadsheet: Add support for example views and hyperlinks in the docs 2020-10-31 15:40:13 +01:00
JSIntegration.cpp Spreadsheet: Let the cells know their own position in the sheet 2020-09-28 17:41:48 +02:00
JSIntegration.h Spreadsheet: Let the cells know their own position in the sheet 2020-09-28 17:41:48 +02:00
main.cpp Spreadsheet: Add support for copying ranges of cells to other cells 2020-11-08 21:46:13 +01:00
Position.h Spreadsheet: Serialise Positions to URLs and add Sheet::from_uri() 2020-11-03 16:47:56 +01:00
Spreadsheet.cpp AK: Make RefPtr, NonnullRefPtr, WeakPtr thread safe 2020-11-10 19:11:52 +01:00
Spreadsheet.h AK: Make RefPtr, NonnullRefPtr, WeakPtr thread safe 2020-11-10 19:11:52 +01:00
SpreadsheetModel.cpp Spreadsheet: Add support for copying ranges of cells to other cells 2020-11-08 21:46:13 +01:00
SpreadsheetModel.h Spreadsheet: Add support for copying ranges of cells to other cells 2020-11-08 21:46:13 +01:00
SpreadsheetView.cpp Spreadsheet: Add support for copying ranges of cells to other cells 2020-11-08 21:46:13 +01:00
SpreadsheetView.h Spreadsheet: Add support for copying ranges of cells to other cells 2020-11-08 21:46:13 +01:00
SpreadsheetWidget.cpp Spreadsheet: Update the view when using the cell editor 2020-11-08 21:46:13 +01:00
SpreadsheetWidget.h Spreadsheet: Add support for copying ranges of cells to other cells 2020-11-08 21:46:13 +01:00
Workbook.cpp LibJS: Rename InterpreterScope => InterpreterExecutionScope 2020-09-21 14:35:12 +02:00
Workbook.h LibJS: Rename InterpreterScope => InterpreterExecutionScope 2020-09-21 14:35:12 +02:00