|
#define | ACE_del_bad_alloc |
|
#define | ACE_NEW_THROW_EX(POINTER, CONSTRUCTOR, EXCEPTION) |
|
#define | ACE_GUARD_THROW_EX(MUTEX, OBJ, LOCK, EXCEPTION) |
|
#define | ACE_READ_GUARD_THROW_EX(MUTEX, OBJ, LOCK, EXCEPTION) |
|
#define | ACE_WRITE_GUARD_THROW_EX(MUTEX, OBJ, LOCK, EXCEPTION) |
|
- Id:
- CORBA_macros.h 91626 2010-09-07 10:59:20Z johnnyw
Writing code that is portable between platforms with or without native C++ exceptions is hard. The following macros offer some help on this task, mostly oriented to making the ORB code and the IDL generated code portable.
- Author
- Nanbor Wang nanbo.nosp@m.r@cs.nosp@m..wust.nosp@m.l.ed.nosp@m.u
-
Aniruddha Gokhale gokha.nosp@m.le@s.nosp@m.ahyad.nosp@m.ri.r.nosp@m.esear.nosp@m.ch.b.nosp@m.ell-l.nosp@m.abs..nosp@m.com
-
Carlos O'Ryan corya.nosp@m.n@uc.nosp@m.i.edu, et al.
#define ACE_del_bad_alloc |
#define ACE_GUARD_THROW_EX |
( |
|
MUTEX, |
|
|
|
OBJ, |
|
|
|
LOCK, |
|
|
|
EXCEPTION |
|
) |
| |
Value:
if (OBJ.locked () == 0) throw EXCEPTION;
This data structure is meant to be used within a method or function... It performs automatic acquisit...
Definition: Guard_T.h:67
#define ACE_NEW_THROW_EX |
( |
|
POINTER, |
|
|
|
CONSTRUCTOR, |
|
|
|
EXCEPTION |
|
) |
| |
Value:do { POINTER = new CONSTRUCTOR; \
if (POINTER == 0) { throw EXCEPTION; } \
} while (0)
#define ACE_READ_GUARD_THROW_EX |
( |
|
MUTEX, |
|
|
|
OBJ, |
|
|
|
LOCK, |
|
|
|
EXCEPTION |
|
) |
| |
Value:
if (OBJ.locked () == 0) throw EXCEPTION;
This class is similar to class ACE_Guard, though it acquires/releases a read lock automatically (natu...
Definition: Guard_T.h:192
#define ACE_WRITE_GUARD_THROW_EX |
( |
|
MUTEX, |
|
|
|
OBJ, |
|
|
|
LOCK, |
|
|
|
EXCEPTION |
|
) |
| |
Value:
if (OBJ.locked () == 0) throw EXCEPTION;
This class is similar to class ACE_Guard, though it acquires/releases a write lock automatically (nat...
Definition: Guard_T.h:146