Subversion Repositories HelenOS-historic

Rev

Rev 1458 | Rev 1571 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1458 Rev 1502
Line 301... Line 301...
301
    t->state = Entering;
301
    t->state = Entering;
302
    t->call_me = NULL;
302
    t->call_me = NULL;
303
    t->call_me_with = NULL;
303
    t->call_me_with = NULL;
304
   
304
   
305
    timeout_initialize(&t->sleep_timeout);
305
    timeout_initialize(&t->sleep_timeout);
-
 
306
    t->sleep_interruptible = false;
306
    t->sleep_queue = NULL;
307
    t->sleep_queue = NULL;
307
    t->timeout_pending = 0;
308
    t->timeout_pending = 0;
308
 
309
 
309
    t->in_copy_from_uspace = false;
310
    t->in_copy_from_uspace = false;
310
    t->in_copy_to_uspace = false;
311
    t->in_copy_to_uspace = false;
Line 383... Line 384...
383
{
384
{
384
    waitq_t wq;
385
    waitq_t wq;
385
                 
386
                 
386
    waitq_initialize(&wq);
387
    waitq_initialize(&wq);
387
 
388
 
388
    (void) waitq_sleep_timeout(&wq, usec, SYNCH_NON_BLOCKING);
389
    (void) waitq_sleep_timeout(&wq, usec, SYNCH_FLAGS_NON_BLOCKING);
389
}
390
}
390
 
391
 
391
/** Register thread out-of-context invocation
392
/** Register thread out-of-context invocation
392
 *
393
 *
393
 * Register a function and its argument to be executed
394
 * Register a function and its argument to be executed