View Single Post
  #4 (permalink)  
Old 05-25-2004
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 971
Ok, now I strongly suspect a bug in the FreeBSD threading library you are using.

The C equivalent of the test to this point is pretty simple:
Code:
pthread_mutex_init(...);
pthread_mutex_lock(...);
pthread_mutex_unlock(...);
pthread_mutex_trylock(...);
The call to trylock should not be returning EDEADLK in this case, since the mutex has clearly been unlocked.

Perhaps you should submit this test to the FreeBSD folks as a bug report.

Take care,
- Mark
Reply With Quote