[omniORB] omni_mutex::trylock

Luke Deller ldeller at iress.com.au
Tue Sep 9 17:19:35 BST 2008


Hello,

Here's a patch to add a non-blocking "trylock" method to the omni_mutex
class in the omnithread library.  Would something like this be a
useful addition to the omnithread code base?

See that I added the relevant mapping to a native thread library call
in nt.h, posix.h and VxThread.h.  The last of these is untested.

The other implementations (mach.h, pthread_nt.h and solaris.h) appear
to be currently broken due to missing a definition of
OMNI_MUTEX_LOCK_IMPLEMENTATION, so I did not bother with them.

Kind regards,
Luke.

**********************************************************************************************
Important Note
This email (including any attachments) contains information which is confidential and may be subject to legal privilege.  If you are not the intended recipient you must not use, distribute or copy this email.  If you have received this email in error please notify the
sender immediately and delete this email. Any views expressed in this email are not necessarily the views of IRESS Market Technology Limited.

It is the duty of the recipient to virus scan and otherwise test the information provided before loading onto any computer system.
IRESS Market Technology Limited does not warrant that the information is free of a virus or any other defect or error.
**********************************************************************************************



More information about the omniORB-list mailing list