On Tue, 7 Nov 2006, Jonas Maebe wrote:
> Hello, > > Does anyone see a problem with the following CSuspendThread/CResumeThread > implementations? > > function CSuspendThread (threadHandle : TThreadID) : dword; > begin > result := pthread_kill(threadHandle,SIGSTOP); > end; > > > function CResumeThread (threadHandle : TThreadID) : dword; > begin > result := pthread_kill(threadHandle,SIGCONT); > end; > > > Those routines are currently empty, and called for *bsd/Darwin in case you try > to tthread.suspend one thread from inside another one. FWIW, I guess Linux > should be changed to also use the above (it currently uses the regular kill, > which may have unintended side effects with NPTL). I think this is OK. Michael. _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel