[Ace-users] Obtaining a facet executor from its component reference
or executor
sanntos
sanntosn at lycos.com
Mon Aug 13 12:05:38 CDT 2007
Hi,
Sorry to send this to this list but my previous message to CIAO list
was not delivered.
CIAO VERSION: 0.5.9
TAO VERSION : 1.5.9
ACE VERSION : 5.5.9
HOST MACHINE and OPERATING SYSTEM:
If on Windows based OS's, which version of WINSOCK do you
use?: Pentium IV, Debian linix kernel 2.6
TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
COMPILER NAME AND VERSION (AND PATCHLEVEL):
THE $ACE_ROOT/ace/config.h FILE [if you use a link to a platform-
specific file, simply state which one]:#include "ace/config-
linux.h"
THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE [if you
use a link to a platform-specific file, simply state which one
(unless this isn't used in this case, e.g., with Microsoft Visual
C++)]:
no_hidden_visibility=1
include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/
default.features
(used by MPC when you generate your own makefiles): There is no
such file.
AREA/CLASS/EXAMPLE AFFECTED:
[What example failed? What module failed to compile?]
DOES THE PROBLEM AFFECT:
COMPILATION? No.
If so, what do your $ACE_ROOT/ace/config.h and
$ACE_ROOT/include/makeinclude/platform_macros.GNU contain?
LINKING? No.
On Unix systems, did you run make realclean first?
EXECUTION? No.
OTHER (please specify)?
[Please indicate whether ACE/TAO/CIAO, your application, or both are
affected.]
SYNOPSIS: Obtaining a facet executor from its component reference or
executor
[Brief description of the problem]
DESCRIPTION:
[Detailed description of problem. Don't just say "
doesn't work, here's a fix," explain what your program does
to get to the state. ]
I declared a mutex in one of my executor facets and I need to acquire
a lock on the mutex in another facet method but I don't know how to
have access to another facet executor of the same component. I have
the method ReceiverFacet_exec_i::get_lock() and need to call it from
NotifyFacet_exec_i::notify(). Both facets belong to the same
component. I know I can navigate through the facets if I have the
component reference, but is it possible to obtain the facet executors
from the component reference or component executor?
Thank you very much.
Santos
REPEAT BY:
[What you did to get the error; include test program or session
transcript if at all possible. ]
SAMPLE FIX/WORKAROUND:
[If available ]
More information about the Ace-users
mailing list