remove curl dep
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user