Hi,

    + added .prg function hb_threadSelf() -> <pThID> | NIL
      It returns thread ID pointer variable or NIL when thread was
      registered without it (main thread and some 3-rd party threads
      created by C API)

Can main thread be terminated after child thread? Can child process wait for exit of main thread (let's say main thread do some initialization only) and child continue to do the rest job? In this case we need hb_threadJoin(pMainThread), but it could not be obtained by hb_threadSelf().

Does anybody know a good thread tutorial/primer to help answer this many other similar questions?


Best regards,
Mindaugas


P.S. is it ok, that hb_vmSuspendThreads() returns from inside of HB_VM_LOCK/HB_VM_UNLOCK?
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to