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 suggestions?
Thanks in advance.
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 suggestions?
Thanks in advance.