mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:57:42 +00:00
![]() This is done mainly by implementing safe locking on the data structure keeping the pointers to the PerContextState objects. Therefore, this now eliminates the need for using LockRefPtr, as SpinlockProtected is enough for the whole list. The usage of HashMap in this class was questionable, and according to Sahan Fernando (the original contributor to the VirGL work also known as ccapitalK) there was no deep research on which data structure to use for keeping all pointers to PerContextState objects. Therefore, this structure is changed to IntrusiveList as the main reason and advantage to use it is that handling OOM conditions is much more simple, because if we succeeded to create a PerContextState object, we can be sure now that inserting it to the list will not cause OOM error condition. |
||
---|---|---|
.. | ||
Console.cpp | ||
Console.h | ||
DisplayConnector.cpp | ||
DisplayConnector.h | ||
GPU3DDevice.cpp | ||
GPU3DDevice.h | ||
GraphicsAdapter.cpp | ||
GraphicsAdapter.h | ||
Protocol.h |