protected static interface VirtualMachine.ForOpenJ9.Dispatcher.ForJnaWindowsEnvironment.WindowsLibrary extends StdCallLibrary
| Modifier and Type | Interface and Description |
|---|---|
static class |
VirtualMachine.ForOpenJ9.Dispatcher.ForJnaWindowsEnvironment.WindowsLibrary.SecurityAttributes
A structure representing a mutex's security attributes.
|
StdCallLibrary.StdCallCallbackLibrary.Handler| Modifier and Type | Field and Description |
|---|---|
static int |
SEMAPHORE_ALL_ACCESS
Indicates that a semaphore requires all access rights.
|
FUNCTION_MAPPER, STDCALL_CONVENTIONOPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_TYPE_MAPPER| Modifier and Type | Method and Description |
|---|---|
WinNT.HANDLE |
CreateMutex(VirtualMachine.ForOpenJ9.Dispatcher.ForJnaWindowsEnvironment.WindowsLibrary.SecurityAttributes attributes,
boolean owner,
String name)
Create or opens a mutex.
|
WinNT.HANDLE |
CreateSemaphoreW(WinBase.SECURITY_ATTRIBUTES securityAttributes,
long count,
long maximumCount,
String name)
Creates a new semaphore.
|
WinNT.HANDLE |
OpenMutex(int access,
boolean inherit,
String name)
Opens an existing object.
|
WinNT.HANDLE |
OpenSemaphoreW(int access,
boolean inheritHandle,
String name)
Opens an existing semaphore.
|
boolean |
ReleaseMutex(WinNT.HANDLE handle)
Releases the supplied mutex.
|
boolean |
ReleaseSemaphore(WinNT.HANDLE handle,
long count,
Long previousCount)
Releases the semaphore.
|
static final int SEMAPHORE_ALL_ACCESS
@Nonnull(when=MAYBE) WinNT.HANDLE OpenSemaphoreW(int access, boolean inheritHandle, String name)
access - The access rights.inheritHandle - true if the handle is inherited.name - The semaphore's name.null if the handle could not be created.@Nonnull(when=MAYBE) WinNT.HANDLE CreateSemaphoreW(@Nonnull(when=MAYBE) WinBase.SECURITY_ATTRIBUTES securityAttributes, long count, long maximumCount, String name)
securityAttributes - The security attributes for the created semaphore.count - The initial count for the semaphore.maximumCount - The maximum count for the semaphore.name - The semaphore's name.null if the handle could not be created.boolean ReleaseSemaphore(WinNT.HANDLE handle, long count, @Nonnull(when=MAYBE) Long previousCount)
handle - The semaphore's handle.count - The amount with which to increase the semaphore.previousCount - The previous count of the semaphore or null.true if the semaphore was successfully released.@Nonnull(when=MAYBE) WinNT.HANDLE CreateMutex(VirtualMachine.ForOpenJ9.Dispatcher.ForJnaWindowsEnvironment.WindowsLibrary.SecurityAttributes attributes, boolean owner, String name)
attributes - The mutex's security attributes.owner - true if the caller is supposed to be the initial owner.name - The mutex name.null if the mutex could not be created.WinNT.HANDLE OpenMutex(int access, boolean inherit, String name)
access - The required access privileges.inherit - true if the mutex should be inherited.name - The mutex's name.null if the mutex could not be opened.boolean ReleaseMutex(WinNT.HANDLE handle)
handle - The handle to the mutex.true if the handle was successfully released.Copyright © 2014–2021. All rights reserved.