errors when using semaphore
hi guys.
I don't get how to use semaphore in linux. I am using ubuntu. first of all, i have the following codes: Code:
#include <semaphore.h> Code:
warning: data definition has no type or storage class And another question, why can't I just use : semaphore mutex to declare? like, semaphore mutex = 1; thanks in advance. |
Take a look at the example program in the sem_wait manual page.
|
All times are GMT -5. The time now is 08:41 AM. |