Subversion Repositories HelenOS-historic

Rev

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

Rev 16 Rev 22
Line 67... Line 67...
67
void cushion(void)
67
void cushion(void)
68
{
68
{
69
    void (*f)(void *) = THREAD->thread_code;
69
    void (*f)(void *) = THREAD->thread_code;
70
    void *arg = THREAD->thread_arg;
70
    void *arg = THREAD->thread_arg;
71
 
71
 
-
 
72
    before_thread_runs();
-
 
73
 
72
    /* this is where each thread wakes up after its creation */
74
    /* this is where each thread wakes up after its creation */
73
    spinlock_unlock(&THREAD->lock);
75
    spinlock_unlock(&THREAD->lock);
74
    cpu_priority_low();
76
    cpu_priority_low();
75
 
77
 
76
    f(arg);
78
    f(arg);