home *** CD-ROM | disk | FTP | other *** search
/ c't freeware shareware 1997 / CT_SW_97.ISO / pc / software / entwickl / win95 / pw32i306.exe / lib / Win32 / semaphore.pm < prev    next >
Text File  |  1996-01-17  |  1KB  |  58 lines

  1. package Win32::Semaphore;
  2. use Win32::IPC;
  3. require Exporter;
  4. require DynaLoader;
  5. require AutoLoader;
  6.  
  7. @ISA = qw(Exporter DynaLoader Win32::IPC);
  8.  
  9. =head1    NAME
  10.  
  11. Win32::Semaphore - allow synchronization with Win32 Semaphore objects.
  12.  
  13. =head1 SYNOPSIS
  14.     use Win32::Semaphore;
  15.  
  16.     Win32::Semaphore::Create($SemObj,0,1,"MySem");
  17.     $SemObj->Wait(INFINITE);
  18.  
  19.  
  20. =head1 DESCRIPTION
  21.  
  22. This module allows the user to access Win32 semaphores.
  23.  
  24. =head1 METHODS
  25.  
  26.  Win32::Semaphore::Create( $SemObject,    #container for the sem objects
  27.                          $Initial,    #initial count of the semaphore
  28.                         $Max,         #max count of the semaphore
  29.                         $Name )        #name (string)
  30.     Creates a semaphore object.
  31.  
  32.  Win32::Semaphore::Open( $SemObject,    #container for the sem object
  33.                        $Name )        #name of the semaphore to open.
  34.  
  35.     Open an already created named semaphore.
  36.  
  37. $SemObj->Release($Count,        #amount to increase semaphore count.
  38.                  $lastval        #previous value of the semaphore count.
  39.  
  40.     Release ownership of a semphore object.
  41.  
  42. $SemObj->Wait($TimeOut)        
  43.  
  44.     Wait for ownership of a semaphore object.
  45.  
  46.  
  47.  
  48. =cut
  49.  
  50. bootstrap Win32::Semaphore
  51.  
  52. # Preloaded methods go here.
  53.  
  54. # Autoload methods go after __END__, and are processed by the autosplit program.
  55.  
  56. 1;
  57. __END__
  58.