Displaying 1 result from an estimated 1 matches for "rb_thread_creat".
Did you mean:
rb_thread_create
2006 Dec 07
0
Fwd: win32-service problems with patch
...the solution, but I don''t
- // want to block Service_Ctrl longer than necessary and the
- // critical section will block it.
- VALUE val = rb_hash_aref(EventHookHash,
INT2NUM(waiting_control_code));
- if(val!=Qnil) {
- VALUE thread = rb_thread_create(Service_Event_Dispatch,
(void*) val);
- rb_funcall(thread_group, cAdd, 1, thread);
+ if (waiting_control_code != SERVICE_CONTROL_STOP) {
+ // if there is a code, create a ruby thread to deal with it
+ // this might be over engineering the solut...