Absolutely not. Its undefined behavior. http://stackoverflow.com/questions/4608843/locking-mutex-in-one-thread-and-unlocking-it-in-the-other/4608912#4608912