The question really was why was I doing it.
It turns out I should use a posix semaphore instead.
Thanks for all the help anyway.
Type: Posts; User: kotoko
The question really was why was I doing it.
It turns out I should use a posix semaphore instead.
Thanks for all the help anyway.
I thought of that but isn't that bad programming?
I'm trying to find out if there is a way to init a pthread_mutex so that he starts locked.
With pthread_mutex_init() it starts unlocked by default and I don't know how to change that.
Any...