how to resume/suspend a pthread in iphone os?
<p>Now i face a problem in my porting job, when i need to implement a thread class that will work in not only wince, symbian ,but also unix-like system, like iphone.</p>

<p>I own a suspend/resume interface to implement, anything is ok in wince/symbian except iphone, i use the posix pthread to finish my job, but i search the whole docsets for a resume/suspend-like interface. Things seem to be difficult, pthread in iphone own a <strong>*pthread_create_suspended_np*</strong> that can create a thread in a suspend mode. Now how can i resume or suspend a thread after the thread has run to its stuff in anytime.</p>

<p>BTW, i search Google for some help, it seems that someone else also have this problem .
Some guys suggest use the <strong><em>SIGHUP</em></strong> signal, but this will suspend the whole process, that's  absolutely not ok .</p>

<p>Many thanks if you guys can tell me some solutions for this problem.</p>
