Michael Van Canneyt
michael at freepascal.org
Tue Nov 7 21:47:24 CET 2006
On Tue, 7 Nov 2006, Jonas Maebe wrote:
> Does anyone see a problem with the following CSuspendThread/CResumeThread
> function CSuspendThread (threadHandle : TThreadID) : dword;
> result := pthread_kill(threadHandle,SIGSTOP);
> function CResumeThread (threadHandle : TThreadID) : dword;
> result := pthread_kill(threadHandle,SIGCONT);
> 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.
More information about the fpc-devel