LibreOffice Module cppu (master) 1
|
#include <uno/environment.hxx>
#include <uno/lbnames.h>
#include <cppu/EnvDcp.hxx>
#include <cppu/Enterable.hxx>
#include <osl/thread.h>
#include <osl/thread.hxx>
#include <o3tl/string_view.hxx>
#include <mutex>
#include <unordered_map>
Go to the source code of this file.
Typedefs | |
typedef std::unordered_map< oslThreadIdentifier, uno_Environment *, oslThreadIdentifier_hash, oslThreadIdentifier_equal > | ThreadMap |
Functions | |
static void | s_setCurrent (uno_Environment *pEnv) |
static uno_Environment * | s_getCurrent () |
void SAL_CALL | uno_getCurrentEnvironment (uno_Environment **ppEnv, rtl_uString *pTypeName) SAL_THROW_EXTERN_C() |
static OUString | s_getPrefix (std::u16string_view str1, std::u16string_view str2) |
static int | s_getNextEnv (uno_Environment **ppEnv, uno_Environment *pCurrEnv, uno_Environment *pTargetEnv) |
static void | s_pull (va_list *pParam) |
static void | s_callInto_v (uno_Environment *pEnv, uno_EnvCallee *pCallee, va_list *pParam) |
static void | s_callInto (uno_Environment *pEnv, uno_EnvCallee *pCallee,...) |
static void | s_callOut_v (uno_Environment *pEnv, uno_EnvCallee *pCallee, va_list *pParam) |
static void | s_callOut (uno_Environment *pEnv, uno_EnvCallee *pCallee,...) |
static void | s_environment_invoke_v (uno_Environment *, uno_Environment *, uno_EnvCallee *, va_list *) |
static void | s_environment_invoke_vv (va_list *pParam) |
void SAL_CALL | uno_Environment_invoke_v (uno_Environment *pTargetEnv, uno_EnvCallee *pCallee, va_list *pParam) SAL_THROW_EXTERN_C() |
void SAL_CALL | uno_Environment_invoke (uno_Environment *pEnv, uno_EnvCallee *pCallee,...) SAL_THROW_EXTERN_C() |
void SAL_CALL | uno_Environment_enter (uno_Environment *pTargetEnv) SAL_THROW_EXTERN_C() |
int SAL_CALL | uno_Environment_isValid (uno_Environment *pEnv, rtl_uString **pReason) SAL_THROW_EXTERN_C() |
typedef std::unordered_map<oslThreadIdentifier, uno_Environment *, oslThreadIdentifier_hash, oslThreadIdentifier_equal> ThreadMap |
Definition at line 68 of file EnvStack.cxx.
|
static |
Definition at line 239 of file EnvStack.cxx.
References s_callInto_v().
Referenced by s_environment_invoke_v().
|
static |
Definition at line 229 of file EnvStack.cxx.
References cppu::Enterable::callInto(), and s_pull().
Referenced by s_callInto().
|
static |
Definition at line 258 of file EnvStack.cxx.
References s_callOut_v().
Referenced by s_environment_invoke_v().
|
static |
Definition at line 248 of file EnvStack.cxx.
References cppu::Enterable::callOut_v().
Referenced by s_callOut().
|
static |
Definition at line 279 of file EnvStack.cxx.
References s_callInto(), s_callOut(), s_environment_invoke_vv(), s_getCurrent(), s_getNextEnv(), and s_setCurrent().
Referenced by s_environment_invoke_vv(), and uno_Environment_invoke_v().
|
static |
Definition at line 269 of file EnvStack.cxx.
References s_environment_invoke_v(), and s_environment_invoke_vv().
Referenced by s_environment_invoke_v(), and s_environment_invoke_vv().
|
static |
Definition at line 93 of file EnvStack.cxx.
Referenced by s_environment_invoke_v(), uno_Environment_enter(), uno_Environment_invoke_v(), and uno_getCurrentEnvironment().
|
static |
Definition at line 171 of file EnvStack.cxx.
References cppu::EnvDcp::getPurpose(), idx, s_getPrefix(), and uno_getEnvironment().
Referenced by s_environment_invoke_v(), and uno_Environment_enter().
|
static |
Definition at line 144 of file EnvStack.cxx.
References o3tl::getToken(), and result.
Referenced by s_getNextEnv().
|
static |
Definition at line 221 of file EnvStack.cxx.
References s_pull().
Referenced by s_callInto_v(), and s_pull().
|
static |
Definition at line 76 of file EnvStack.cxx.
Referenced by s_environment_invoke_v(), and uno_Environment_enter().
void SAL_CALL uno_Environment_enter | ( | uno_Environment * | pTargetEnv | ) |
Definition at line 325 of file EnvStack.cxx.
References cppu::Enterable::enter(), cppu::Enterable::leave(), s_getCurrent(), s_getNextEnv(), s_setCurrent(), and SAL_THROW_EXTERN_C.
Referenced by cppu::AntiEnvGuard::AntiEnvGuard().
void SAL_CALL uno_Environment_invoke | ( | uno_Environment * | pEnv, |
uno_EnvCallee * | pCallee, | ||
... | |||
) |
Definition at line 315 of file EnvStack.cxx.
References uno_Environment_invoke_v().
Referenced by Proxy::dispatch(), and Proxy::~Proxy().
void SAL_CALL uno_Environment_invoke_v | ( | uno_Environment * | pTargetEnv, |
uno_EnvCallee * | pCallee, | ||
va_list * | pParam | ||
) |
Definition at line 309 of file EnvStack.cxx.
References s_environment_invoke_v(), s_getCurrent(), and SAL_THROW_EXTERN_C.
Referenced by uno_Environment_invoke().
int SAL_CALL uno_Environment_isValid | ( | uno_Environment * | pEnv, |
rtl_uString ** | pReason | ||
) |
Definition at line 358 of file EnvStack.cxx.
References env, cppu::EnvDcp::getPurpose(), cppu::EnvDcp::getTypeName(), cppu::Enterable::isValid(), result, SAL_THROW_EXTERN_C, and typeName.
void SAL_CALL uno_getCurrentEnvironment | ( | uno_Environment ** | ppEnv, |
rtl_uString * | pTypeName | ||
) |
Definition at line 108 of file EnvStack.cxx.
References cppu::EnvDcp::getPurpose(), s_getCurrent(), SAL_THROW_EXTERN_C, and uno_getEnvironment().