All Packages This Package Class Hierarchy Class Search Index
Class posix.SemSet
java.lang.Object
|
+----posix.IPC
|
+----posix.SemSet
public class SemSet
extends posix.IPC
{
// Fields 1
public static final short SEM_UNDO;
// Constructors 3
public SemSet(int) throws IPCException;
public SemSet(int, int, int) throws IPCException;
public SemSet(String, int) throws IPCException;
// Methods 12
public static native int semget(int, int, int);
public char getNCnt(char) throws IPCException;
public IPC.Perm getPerm() throws IPCException;
public int getPid(char) throws IPCException;
public SemSet.semid_ds getStatus() throws IPCException;
public short getValue(char) throws IPCException;
public short[] getValues() throws IPCException;
public char getZCnt(char) throws IPCException;
public void remove();
public void semop(short[]) throws IPCException;
public void setValue(char, short) throws IPCException;
public void setValues(short[]) throws IPCException;
// Inner Classes 1
public static class SemSet.semid_ds
}
Represent a posix semaphore set. Work in progress.
- Author:
-
Stuart D. Gathman
Copyright (C) 1998 Business Management Systems, Inc.
This code is distributed under the
GNU Library General Public License
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
public static final short SEM_UNDO
public SemSet(int key,
int nsem,
int flag) throws IPCException
public SemSet(int qid) throws IPCException
Attach to an existing semaphore set
public SemSet(String path,
int id) throws IPCException
Attach to an existing semaphore set
public void remove()
- Overrides:
- remove in class IPC
public static native int semget(int key,
int num,
int flag)
public SemSet.semid_ds getStatus() throws IPCException
public IPC.Perm getPerm() throws IPCException
- Overrides:
- getPerm in class IPC
public void semop(short[] sema) throws IPCException
public int getPid(char semnum) throws IPCException
public char getNCnt(char semnum) throws IPCException
public char getZCnt(char semnum) throws IPCException
public short getValue(char semnum) throws IPCException
public void setValue(char semnum,
short val) throws IPCException
public short[] getValues() throws IPCException
public void setValues(short[] vals) throws IPCException
All Packages This Package Class Hierarchy Class Search Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7