|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - download
Length: 3072 (0xc00) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, package body V_I_Sema, seg_04ce14
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─ ⟦5a81ac88f⟧ »Space Info Vol 1« └─⟦this⟧
with System; with Ada_Krn_Defs; with Ada_Krn_I; package body V_I_Sema is function Init_Sema (S : A_Semaphore; Init_State : Semaphore_State_T := Semaphore_Empty) return Boolean is begin return Ada_Krn_I.Semaphore_Init (Ada_Krn_Defs.A_Semaphore_T (S), Ada_Krn_Defs.Semaphore_State_T (Init_State), Ada_Krn_Defs.Default_Semaphore_Attr); end Init_Sema; procedure Enter (S : A_Semaphore) is begin Ada_Krn_I.Semaphore_Wait (Ada_Krn_Defs.A_Semaphore_T (S)); end Enter; function Conditional_Enter (S : A_Semaphore) return Boolean is begin return Ada_Krn_I.Semaphore_Trywait (Ada_Krn_Defs.A_Semaphore_T (S)); end Conditional_Enter; function Timed_Enter (S : A_Semaphore; Timeout : Duration) return Boolean is begin return Ada_Krn_I.Semaphore_Timed_Wait (Ada_Krn_Defs.A_Semaphore_T (S), Timeout); end Timed_Enter; procedure Leave (S : A_Semaphore) is begin Ada_Krn_I.Semaphore_Signal (Ada_Krn_Defs.A_Semaphore_T (S)); end Leave; procedure Suspend (S : A_Semaphore) is begin raise V_I_Sema_Not_Supported; end Suspend; function Timed_Suspend (S : A_Semaphore; Timeout : Duration) return Boolean is begin raise V_I_Sema_Not_Supported; return False; end Timed_Suspend; procedure Resume (S : A_Semaphore) is begin raise V_I_Sema_Not_Supported; end Resume; end V_I_Sema;
nblk1=2 nid=0 hdr6=4 [0x00] rec0=1b rec1=00 rec2=01 rec3=052 [0x01] rec0=18 rec1=00 rec2=02 rec3=000 tail 0x2154978e2874f7c0e6ed3 0x42a00088462060003