remove curl dep

This commit is contained in:
2025-12-06 14:54:00 -06:00
parent 7c0f4dcd5f
commit abf1332bf5
9 changed files with 350 additions and 146 deletions

View File

@@ -11,6 +11,10 @@
#include "cell.h"
#include "cell_internal.h"
#ifdef _WIN32
#include <windows.h>
#endif
typedef struct actor_node {
cell_rt *actor;
struct actor_node *next;
@@ -234,7 +238,13 @@ void actor_initialize(void) {
pthread_create(&engine.timer_thread, NULL, timer_thread_func, NULL);
// Start Workers
#ifdef _WIN32
SYSTEM_INFO sysinfo;
GetSystemInfo(&sysinfo);
long n = sysinfo.dwNumberOfProcessors;
#else
long n = sysconf(_SC_NPROCESSORS_ONLN);
#endif
engine.num_workers = (int)n;
engine.worker_threads = malloc(sizeof(pthread_t) * n);
for (int i=0; i < n; i++) {