私のコードでは、スレッド1が ジョブを完了し、mutexlockをリリースしたかどうかを確認するためにpthread_mutx_trylock()を使用していますか?か否か ?pthread_mutex_trylock()は他のロックが解放されなくなるまで使用します
スレッド2において pthread_mutex_lock(&sync_wait);
// Waiting for return type.
pthread_mutex_unlock(&sync_wait);
:スレッド1では
while (pthread_mutex_trylock(&sync_wait) == 0) {
}; // Wait until other thread has lock
// Waiting till thread 1 sync wait lock has not released.
pthread_mutex_unlock(&sync_wait);
あるように、 '//いくつかの他のコードtype.'の復帰を待っている、またはそれだけコメント、およびロックとアンロック操作であります互いの隣で起こる? –