diff options
Diffstat (limited to 'src/pal/src/synchobj/event.cpp')
-rw-r--r-- | src/pal/src/synchobj/event.cpp | 88 |
1 files changed, 7 insertions, 81 deletions
diff --git a/src/pal/src/synchobj/event.cpp b/src/pal/src/synchobj/event.cpp index 80725f0bf9..3db9a3a38a 100644 --- a/src/pal/src/synchobj/event.cpp +++ b/src/pal/src/synchobj/event.cpp @@ -35,7 +35,10 @@ CObjectType CorUnix::otManualResetEvent( NULL, // No cleanup routine NULL, // No initialization routine 0, // No immutable data + NULL, // No immutable data copy routine + NULL, // No immutable data cleanup routine 0, // No process local data + NULL, // No process local data cleanup routine 0, // No shared data EVENT_ALL_ACCESS, // Currently ignored (no Win32 security) CObjectType::SecuritySupported, @@ -53,7 +56,10 @@ CObjectType CorUnix::otAutoResetEvent( NULL, // No cleanup routine NULL, // No initialization routine 0, // No immutable data + NULL, // No immutable data copy routine + NULL, // No immutable data cleanup routine 0, // No process local data + NULL, // No process local data cleanup routine 0, // No shared data EVENT_ALL_ACCESS, // Currently ignored (no Win32 security) CObjectType::SecuritySupported, @@ -536,84 +542,4 @@ OpenEventWExit: PERF_EXIT(OpenEventW); return hEvent; -} - -/*++ -Function: - InternalOpenEvent - -Note: - dwDesiredAccess is currently ignored (no Win32 object security support) - bInheritHandle is currently ignored (handles to events are not inheritable) - -Parameters: - pthr -- thread data for calling thread - phEvent -- on success, receives the allocated event handle - - See MSDN docs on OpenEvent for all other parameters. ---*/ - -PAL_ERROR -CorUnix::InternalOpenEvent( - CPalThread *pthr, - DWORD dwDesiredAccess, - BOOL bInheritHandle, - LPCWSTR lpName, - HANDLE *phEvent - ) -{ - PAL_ERROR palError = NO_ERROR; - IPalObject *pobjEvent = NULL; - CPalString sObjectName(lpName); - - _ASSERTE(NULL != pthr); - _ASSERTE(NULL != lpName); - _ASSERTE(NULL != phEvent); - - ENTRY("InternalOpenEvent(pthr=%p, dwDesiredAccess=%#x, bInheritHandle=%d, " - "lpName=%p, phEvent=%p)\n", - pthr, - dwDesiredAccess, - bInheritHandle, - lpName, - phEvent - ); - - palError = g_pObjectManager->LocateObject( - pthr, - &sObjectName, - &aotEvent, - &pobjEvent - ); - - if (NO_ERROR != palError) - { - goto InternalOpenEventExit; - } - - palError = g_pObjectManager->ObtainHandleForObject( - pthr, - pobjEvent, - dwDesiredAccess, - bInheritHandle, - NULL, - phEvent - ); - - if (NO_ERROR != palError) - { - goto InternalOpenEventExit; - } - -InternalOpenEventExit: - - if (NULL != pobjEvent) - { - pobjEvent->ReleaseReference(pthr); - } - - LOGEXIT("InternalOpenEvent returns %d\n", palError); - - return palError; -} - +}
\ No newline at end of file |