Subversion Repositories HelenOS-historic

Rev

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

Rev 557 Rev 623
Line 68... Line 68...
68
     *
68
     *
69
     * Protects the whole thread structure except list links above.
69
     * Protects the whole thread structure except list links above.
70
     * Must be acquired before T.lock for each T of type task_t.
70
     * Must be acquired before T.lock for each T of type task_t.
71
     *
71
     *
72
     */
72
     */
73
    spinlock_t lock;
73
    SPINLOCK_DECLARE(lock);
74
 
74
 
75
    void (* thread_code)(void *);       /**< Function implementing the thread. */
75
    void (* thread_code)(void *);       /**< Function implementing the thread. */
76
    void *thread_arg;           /**< Argument passed to thread_code() function. */
76
    void *thread_arg;           /**< Argument passed to thread_code() function. */
77
 
77
 
78
    context_t saved_context;        /**< From here, the stored context is restored when the thread is scheduled. */
78
    context_t saved_context;        /**< From here, the stored context is restored when the thread is scheduled. */