Codemesh Runtime v3 C++ API Reference
3.9.205
|
6 #ifndef xmogLockHolder_inc
7 #define xmogLockHolder_inc
10 #include "xmog_base.h"
11 #include "xmog_java_ref.h"
12 #include "xmog_java_class.h"
70 # if !defined(XMOG_NULL_NAME)
77 if( toLock_ != XMOG_NULL_NAME )
A utility class used for synchronizing access to a Java object.
Definition: xmog_lock_holder.h:48
virtual void xmog_monitor_exit(xmog_localenv *env=NULL) const
Leaves a lock in the object.
virtual void xmog_monitor_enter(xmog_localenv *env=NULL) const
Attempts to enter into a lock on the object.
The wrapper base type representing C++ proxy instances for Java objects.
Definition: xmog_java_ref.h:19
The wrapper for exceptions that occur on the Java side.
Definition: xmog_exception.h:46
xmog_lock_holder(xmog_java_ref &_toLock)
Attempts to lock the given proxy object on the Java side.
Definition: xmog_lock_holder.h:64
~xmog_lock_holder()
Unlocks the proxy object on the Java side.
Definition: xmog_lock_holder.h:93
Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.