1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
/* -*- C++ -*- */
// $Id$
#ifndef TAO_IFR_MACROS_H
#define TAO_IFR_MACROS_H
#include "ace/pre.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#define TAO_IFR_WRITE_GUARD \
ACE_WRITE_GUARD_THROW_EX (ACE_Lock, \
monitor, \
this->repo_->lock (), \
CORBA::INTERNAL ( \
CORBA::SystemException::_tao_minor_code ( \
TAO_GUARD_FAILURE, \
0), \
CORBA::COMPLETED_NO)); \
ACE_CHECK
#define TAO_IFR_WRITE_GUARD_RETURN(RETURN) \
ACE_WRITE_GUARD_THROW_EX (ACE_Lock, \
monitor, \
this->repo_->lock (), \
CORBA::INTERNAL ( \
CORBA::SystemException::_tao_minor_code ( \
TAO_GUARD_FAILURE, \
0), \
CORBA::COMPLETED_NO)); \
ACE_CHECK_RETURN (RETURN)
#define TAO_IFR_READ_GUARD_RETURN(RETURN) \
ACE_READ_GUARD_THROW_EX (ACE_Lock, \
monitor, \
this->repo_->lock (), \
CORBA::INTERNAL ( \
CORBA::SystemException::_tao_minor_code ( \
TAO_GUARD_FAILURE, \
0), \
CORBA::COMPLETED_NO)); \
ACE_CHECK_RETURN (RETURN)
#include "ace/post.h"
#endif /* TAO_IFR_MACROS_H */
|