semaphore in linux with maxcount and time out
I am porting a Windows application to Linux. I need to set a time out for the semaphore wait operation. I did it with sem_trywait in a loop. Is there a better way?
How to set set the maximum count for a semaphore ? Anybody has a wrapper written with these functionalities implemented ?
thanks
Manju
|