[Phi] implementing fully async queues, fences and semaphores
Mirror Gitea refs to GitHub / mirror (push) Successful in 15s
Build / build (push) Failing after 1m1s
Test / build_and_test (push) Successful in 6m8s

This commit is contained in:
2026-08-20 14:11:12 +02:00
parent 35e6c1d099
commit 3e12e97fe2
16 changed files with 1075 additions and 101 deletions
+7
View File
@@ -3,6 +3,7 @@
#include <Daemon.h>
#include <Logger.h>
#include <Memory.h>
#include <Queue.h>
static int HandleHello(PhiEndpoint endpoint, const PhiMessageHeader* header)
{
@@ -39,7 +40,10 @@ PhiEndpoint StartDaemon(void)
PhiEndpoint endpoint = TransportListen(PHI_TRANSPORT_PORT);
if(endpoint == PHI_ENDPOINT_INVALID)
{
LogError("Could not listen on the Phi transport");
return 0;
}
LogInfo("Daemon started");
return endpoint;
@@ -92,6 +96,9 @@ int HandlePacket(PhiEndpoint endpoint)
return -1;
break;
case PHI_PACKET_QUEUE_SETUP:
return HandleQueueSetup(endpoint, &header);
case PHI_PACKET_SHUTDOWN:
if(DrainPayload(endpoint, header.payload_size) < 0)
return -1;