if (pthread_mutex_lock&(mycontrol->mutex))) should be if (pthread_mutex_lock(&(mycontrol->mutex))) Reproducible: Always Steps to Reproduce:
Fixed in CVS, thanks.