DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦dc31d1bf5⟧ TextFile

    Length: 1388 (0x56c)
    Types: TextFile
    Notes: R1k Text-file segment

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« 
        └─⟦0e1889e10⟧ 
            └─⟦this⟧ 

TextFile

-- Copyright 1990, 1992 Verdix Corporation

------------------------------------------------------------------------------
-- Inline semaphore routines
------------------------------------------------------------------------------
with v_i_sema;
package v_sema is

    pragma suppress(ALL_CHECKS);
    pragma suppress(EXCEPTION_TABLES);
    pragma not_elaborated;
    
    --------------------------------------------------------------------------
    -- See descriptions in v_i_sema.a
    --------------------------------------------------------------------------
    procedure enter(s: v_i_sema.a_semaphore);
		pragma inline_only(enter);

    function conditional_enter(s: v_i_sema.a_semaphore) return boolean;
		pragma inline_only(conditional_enter);

    procedure leave(s: v_i_sema.a_semaphore);
		pragma inline_only(leave);

end;

with ada_krn_defs;
with ada_krn_i;
with v_i_sema;
package body v_sema is

    pragma suppress(ALL_CHECKS);
    pragma suppress(EXCEPTION_TABLES);

    procedure enter(s: v_i_sema.a_semaphore) is
	begin
		ada_krn_i.semaphore_wait(ada_krn_defs.a_semaphore_t(s));
	end;

    function conditional_enter(s: v_i_sema.a_semaphore) return boolean is
	begin
		return ada_krn_i.semaphore_trywait(ada_krn_defs.a_semaphore_t(s));
	end;

    procedure leave(s: v_i_sema.a_semaphore) is
	begin
		ada_krn_i.semaphore_signal(ada_krn_defs.a_semaphore_t(s));
	end;

end