protected static interface VirtualMachine.ForOpenJ9.Dispatcher.ForJnaWindowsEnvironment.WindowsLibrary
extends com.sun.jna.win32.StdCallLibrary
| 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 |
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 |
OpenSemaphoreW(int access,
boolean inheritHandle,
String name)
Opens an existing semaphore.
|
boolean |
ReleaseSemaphore(com.sun.jna.platform.win32.WinNT.HANDLE handle,
long count,
Long previousCount)
Releases the semaphore.
|
static final int SEMAPHORE_ALL_ACCESS
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.com.sun.jna.platform.win32.WinNT.HANDLE CreateSemaphoreW(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,
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.Copyright © 2014–2019. All rights reserved.