|
From: milos r. <ro1...@gm...> - 2010-10-13 19:05:00
|
Greetings, I have a problem understanding the example on this page: http://dias.cs.st-andrews.ac.uk/Contiki-related/examples/example.c <http://dias.cs.st-andrews.ac.uk/Contiki-related/examples/example.c>PT_SEM_WAIT(pt, &full) should block producer thread when the buffer is full. PT_SEM_WAIT() blocks the thread when the counter iz zero. Where and how the counter *full *is being decremented? I need an explanation of this example in more details, please. Thanks in advance!!! -- Best regards, Milos Rovcanin |