All Packages  This Package  Class Hierarchy  Class Search  Index

Class posix.SemSet
java.lang.Object
   |
   +----posix.IPC
           |
           +----posix.SemSet

  Summary

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.




  Fields

· SEM_UNDO

Summary  |  Top

   public static final short SEM_UNDO


  Constructors

· SemSet

Summary  |  Top

   public SemSet(int key, 
                 int nsem, 
                 int flag)  throws IPCException


· SemSet

Summary  |  Top
   public SemSet(int qid)  throws IPCException

Attach to an existing semaphore set



· SemSet

Summary  |  Top
   public SemSet(String path, 
                 int id)  throws IPCException

Attach to an existing semaphore set



  Methods

· remove

Summary  |  Top
   public void remove() 
Overrides:
remove in class IPC


· semget

Summary  |  Top
   public static native int semget(int key, 
                                   int num, 
                                   int flag) 


· getStatus

Summary  |  Top
   public SemSet.semid_ds getStatus()  throws IPCException


· getPerm

Summary  |  Top
   public IPC.Perm getPerm()  throws IPCException
Overrides:
getPerm in class IPC


· semop

Summary  |  Top
   public void semop(short[] sema)  throws IPCException


· getPid

Summary  |  Top
   public int getPid(char semnum)  throws IPCException


· getNCnt

Summary  |  Top
   public char getNCnt(char semnum)  throws IPCException


· getZCnt

Summary  |  Top
   public char getZCnt(char semnum)  throws IPCException


· getValue

Summary  |  Top
   public short getValue(char semnum)  throws IPCException


· setValue

Summary  |  Top
   public void setValue(char semnum, 
                        short val)  throws IPCException


· getValues

Summary  |  Top
   public short[] getValues()  throws IPCException


· setValues

Summary  |  Top
   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