Is it possable to explicity unlock and lock a mutex using the boost thread libary. There is the scoped_lock function. But that does not offer enought control over the mutex and I keep deadlocking my code.

Thanks