Changeset 9235


Ignore:
Timestamp:
Apr 22, 2008, 8:48:21 PM (12 years ago)
Author:
andreas
Message:

Properly yield in spinlocks, implementation of create_system_thread.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/win64/lisp-kernel/thread_manager.c

    r8959 r9235  
    118118    sched_yield();
    119119#else
    120     Sleep(0);
     120    SwitchToThread();
    121121#endif
    122122  }
     
    12151215                     void* param)
    12161216{
     1217  HANDLE thread_handle;
     1218  ULONG thread_id;
     1219
     1220  /* what about stackaddr? */
     1221  thread_handle = CreateThread(NULL, stack_size, start_routine,
     1222                               param, 0, &thread_id);
     1223
     1224  if (thread_handle == NULL) {
     1225    wperror("CreateThread");
     1226  }
     1227  return (LispObj) ptr_to_lispobj(thread_handle);
    12171228}
    12181229#else
Note: See TracChangeset for help on using the changeset viewer.