Semaphore used without initializing
Hi
I am using semaphore.h
I declared a variable of type sem_t.
I am able to use the variable without even calling sem_init or sem_open, and it is working properly.
Can somebody explain to me if the variable is automatically assigned some value?
Also would I run into any trouble doing so?
Last edited by DoNotknow; 11-04-2010 at 07:25 PM.
|