Annotation of OSKit-Mach/oskit/osenv_sleep.c, revision 1.1

1.1     ! root        1: #include <oskit/dev/dev.h>
        !             2: 
        !             3: #include "sched_prim.h"
        !             4: 
        !             5: 
        !             6: void
        !             7: osenv_sleep_init(osenv_sleeprec_t *sr)
        !             8: {
        !             9:   sr->data[0] = (void *) OSENV_SLEEP_WAKEUP;
        !            10: }
        !            11: 
        !            12: int
        !            13: osenv_sleep(osenv_sleeprec_t *sr)
        !            14: {
        !            15:   assert_wait (sr, FALSE);
        !            16:   thread_block (0);
        !            17:   return (int) sr->data[0];
        !            18: }
        !            19: 
        !            20: void
        !            21: osenv_wakeup(osenv_sleeprec_t *sr, int wakeup_status)
        !            22: {
        !            23:   sr->data[0] = (void *) wakeup_status;
        !            24:   thread_wakeup (sr);
        !            25: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.