Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

MUTEX_$UNLOCK                     Domain/OS                      MUTEX_$UNLOCK


NAME
     mutex_$unlock - release a mutual exclusion lock

SYNOPSIS (C)
     #include <apollo/base.h>
     #include <apollo/mutex.h>

     void mutex_$unlock(mutex_$lock_rec_t *lock_record)

SYNOPSIS (Pascal)
     %include '/sys/ins/base.ins.pas';
     %include '/sys/ins/mutex.ins.pas';

     procedure mutex_$unlock(var lock_record: mutex_$lock_rec_t);

SYNOPSIS (FORTRAN)
     %include '/sys/ins/base.ins.ftn'
     %include '/sys/ins/mutex.ins.ftn'

           integer*2 lock_record(4), lock_ec_awaiters
           integer*4 lock_ec_value
           character*1 lock_byte

           equivalence (lock_byte, lock_record(1))
           equivalence (lock_ec_value, lock_record(2))
           equivalence (lock_ec_awaiters, lock_record(4))

           call mutex_$unlock(lock_record)

DESCRIPTION
     Mutex_$unlock releases a mutual exclusion lock on the object associated
     with lock_record.  The lock can then be granted to another process wait-
     ing for it.

     lock_record
          The mutual exclusion lock record for the object the lock is
          requested for.

SEE ALSO
     ms_$mapl.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026