mirror of
https://git.checksum.fail/alec/erythros
synced 2025-12-12 05:59:53 +02:00
Everywhere: Live patch MAlloc/Free to use RMAlloc/RFree
To make MAlloc/Free operations consistent across multiple processors, we use a dedicated task on core 5 to service the requests.
This commit is contained in:
@@ -26,7 +26,7 @@ U0 @systemtray_register_item(I64 addr)
|
||||
|
||||
U0 @systemtray_unregister_item(Widget* item)
|
||||
{
|
||||
IpcMessage* msg = CAlloc2(sizeof(IpcMessage));
|
||||
IpcMessage* msg = CAlloc(sizeof(IpcMessage));
|
||||
msg->client = NULL;
|
||||
msg->type = CPZ_MSG_WIN_WIDGET_DESTROY;
|
||||
msg->payload = item;
|
||||
@@ -87,7 +87,7 @@ U0 @systemtray_task()
|
||||
Context2DWidget* @systemtray_client_register_item()
|
||||
{
|
||||
Context2DWidget* item = NULL;
|
||||
IpcMessage* msg = CAlloc2(sizeof(IpcMessage));
|
||||
IpcMessage* msg = CAlloc(sizeof(IpcMessage));
|
||||
msg->client = NULL;
|
||||
msg->type = SYSTRAY_MSG_REGISTER;
|
||||
msg->payload = &item;
|
||||
@@ -100,7 +100,7 @@ Context2DWidget* @systemtray_client_register_item()
|
||||
|
||||
U0 @systemtray_client_unregister_item(Widget* item)
|
||||
{
|
||||
IpcMessage* msg = CAlloc2(sizeof(IpcMessage));
|
||||
IpcMessage* msg = CAlloc(sizeof(IpcMessage));
|
||||
msg->client = NULL;
|
||||
msg->type = SYSTRAY_MSG_UNREGISTER;
|
||||
msg->payload = item;
|
||||
|
||||
Reference in New Issue
Block a user