protected static interface VirtualMachine.ForOpenJ9.Dispatcher.ForJnaWindowsEnvironment.WindowsLibrary
extends com.sun.jna.win32.StdCallLibrary
| Modifier and Type | Interface and Description |
|---|---|
static class |
VirtualMachine.ForOpenJ9.Dispatcher.ForJnaWindowsEnvironment.WindowsLibrary.SecurityAttributes
A structure representing a mutex's security attributes.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
SEMAPHORE_ALL_ACCESS
Indicates that a semaphore requires all access rights.
|
| Modifier and Type | Method and Description |
|---|---|
com.sun.jna.platform.win32.WinNT.HANDLE |
CreateMutex(VirtualMachine.ForOpenJ9.Dispatcher.ForJnaWindowsEnvironment.WindowsLibrary.SecurityAttributes attributes,
boolean owner,
String name)
Create or opens a mutex.
|
com.sun.jna.platform.win32.WinNT.HANDLE |
CreateSemaphoreW(com.sun.jna.platform.win32.WinBase.SECURITY_ATTRIBUTES securityAttributes,
long count,
long maximumCount,
String name)
Creates a new semaphore.
|
com.sun.jna.platform.win32.WinNT.HANDLE |
OpenMutex(int access,
boolean inherit,
String name)
Opens an existing object.
|
com.sun.jna.platform.win32.WinNT.HANDLE |
OpenSemaphoreW(int access,
boolean inheritHandle,
String name)
Opens an existing semaphore.
|
boolean |
ReleaseMutex(com.sun.jna.platform.win32.WinNT.HANDLE handle)
Releases the supplied mutex.
|
boolean |
ReleaseSemaphore(com.sun.jna.platform.win32.WinNT.HANDLE handle,
long count,
Long previousCount)
Releases the semaphore.
|
static final int SEMAPHORE_ALL_ACCESS
@MaybeNull com.sun.jna.platform.win32.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.@MaybeNull com.sun.jna.platform.win32.WinNT.HANDLE CreateSemaphoreW(@MaybeNull com.sun.jna.platform.win32.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(com.sun.jna.platform.win32.WinNT.HANDLE handle,
long count,
@MaybeNull
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.@MaybeNull com.sun.jna.platform.win32.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.com.sun.jna.platform.win32.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(com.sun.jna.platform.win32.WinNT.HANDLE handle)
handle - The handle to the mutex.true if the handle was successfully released.Copyright © 2014–2025. All rights reserved.