fix sockets
This commit is contained in:
@@ -790,7 +790,6 @@ static void loop()
|
||||
|
||||
SDL_LockMutex(queue_mutex);
|
||||
cell_rt *actor = NULL;
|
||||
printf("queue check? %d\n", arrlen(ready_queue));
|
||||
for (int i = 0; i < arrlen(ready_queue); i++) {
|
||||
if (ready_queue[i]->main_thread_only) {
|
||||
actor = ready_queue[i];
|
||||
@@ -814,11 +813,9 @@ static void loop()
|
||||
// No more timers - hence, no more actors ... exit if single threaded.
|
||||
}
|
||||
|
||||
printf("waiting for a timeout ...\n");
|
||||
SDL_LockMutex(queue_mutex);
|
||||
SDL_WaitConditionTimeout(queue_cond, queue_mutex, 100);
|
||||
SDL_UnlockMutex(queue_mutex);
|
||||
printf("something happened ...\n");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -939,12 +936,3 @@ int actor_exists(const char *id)
|
||||
else
|
||||
return 1;
|
||||
}
|
||||
|
||||
int JS_ArrayLength(JSContext *js, JSValue a)
|
||||
{
|
||||
JSValue length = JS_GetPropertyStr(js, a, "length");
|
||||
int len;
|
||||
JS_ToInt32(js,&len,length);
|
||||
JS_FreeValue(js,length);
|
||||
return len;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user