pthread help



Hello,
I have some trouble in thread programming. What I do as an exercise is
to create a thread on a loop function involved in data stream output
from a buffer. The main execution thread have the possibility to pause
the loop thread, change the buffer location the loop thread use as
source
(rewind it, for example), restart or signal the loop thread to restart
output.

I read libc info pages, I think mutexes and condition variables could
help
but is a little too abstract to me to begin an approach.

Can anyone point me to some elegant solutions?

Thanks,
Gaetano

.



Relevant Pages

  • Re: pthread help
    ... to create a thread on a loop function involved in data stream output ... change the buffer location the loop thread use as ... A thread can acquire a mutex, add a job to the linked list, and then ...
    (comp.os.linux.development.apps)
  • Summary: System crashing in loop
    ... OBP firmware version. ... but will crash and end up in a state ... The only way out of this loop, is to power off the system ... and restart. ...
    (SunManagers)
  • Re: Do Until... Restart
    ... An IF statement in the loop will do it, with no need to restart ... where I've said Reset B1:B500. ... The macro must run until there are exactly 100 instances of 15 in B1:B500 ...
    (microsoft.public.excel.programming)
  • Re: Transparent wrappers/weak types?
    ... >> If I wrap an object in a structure S can code continue to run ... >> if the object causing the type error is of type S and if so returns ... to "fix" the type error you need a way to restart the LOOP ...
    (comp.lang.lisp)
  • Restart and Startup Fail Loop
    ... Last Known Good Configuration: Loop continues ... Disable auto restart on Failure: Error Message as follows- ... Re-installing application may fix this problem. ...
    (microsoft.public.windowsxp.general)