lock man page on Inferno

Man page or keyword search:  
man Server   579 pages
apropos Keyword Search (all sections)
Output format
Inferno logo
[printable version]

LOCK(2)								       LOCK(2)

NAME
       lock - thread locking.

SYNOPSIS
       include "lock.m";
       lock := load Lock Lock->PATH;
       Semaphore: adt {
	    c: chan of int;
	    obtain: fn(s: self ref Semaphore);
	    release: fn(s: self ref Semaphore);
	    new: fn(): ref Semaphore;
       };
       init: fn();

DESCRIPTION
       Lock  provides  semaphore-based	mutual exclusion.  Init must be called
       before creating any locks.

       Semaphore.new()
	      Creates and returns a reference to a new Semaphore (lock).

       s.obtain()
	      Obtains exclusive access to the lock s.  It will block until  it
	      can do so.

       s.release()
	      Releases access to the lock s and allows processes waiting on it
	      to proceed.

SOURCE
       /appl/lib/lock.b

								       LOCK(2)
[top]

List of man pages available for Inferno

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net