[ace-users] Files created for USYNC_PROCESS mutexes
Douglas C. Schmidt
schmidt at dre.vanderbilt.edu
Thu Sep 13 12:58:55 CDT 2007
Hi Nathan,
>Thanks. I moved to ACE_Process_Mutex, and both the file went
>away and the problem with the mutex remaining locked if
>the program terminates abnormally. I think we're good.
Ok, sounds good.
>Some comments:
>1) Probably by going through the ACE code sufficiently one
>could determine that ACE_Mutex with USYNC_PROCESS was not
>at all the same as ACE_Process_Mutex, but one who does not
>take the trouble to do so could easily believe that they are
>pretty much the same thing.
Good point. I've added a comment to the ACE_Mutex class recommending
the use of ACE_Process_Mutex or ACE_Thread_Mutex instead of ACE_Mutex.
> 2) Having an implementation of a mutex in which a process
> terminating abnormally leaves the mutex held forever is not a robust
> implementation.
I concur. If you have suggestions on how to improve this
implementation please let us know.
Thanks,
Doug
--
Dr. Douglas C. Schmidt Professor and Associate Chair
Electrical Engineering and Computer Science TEL: (615) 343-8197
Vanderbilt University WEB: www.dre.vanderbilt.edu/~schmidt
Nashville, TN 37203 NET: d.schmidt at vanderbilt.edu
More information about the Ace-users
mailing list