Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/fibril_synch.h

    r3e6a98c5 r7c15d6f  
    116116        /** Timer has fired and has not been cleared since */
    117117        fts_fired,
    118         /** Timer is being destroyed */
    119         fts_cleanup
     118        /** Timer fibril is requested to terminate */
     119        fts_cleanup,
     120        /** Timer fibril acknowledged termination */
     121        fts_clean
    120122} fibril_timer_state_t;
    121123
     
    129131typedef struct {
    130132        fibril_mutex_t lock;
     133        fibril_mutex_t *lockp;
    131134        fibril_condvar_t cv;
    132135        fid_t fibril;
    133136        fibril_timer_state_t state;
     137        /** FID of fibril executing handler or 0 if handler is not running */
     138        fid_t handler_fid;
    134139
    135140        suseconds_t delay;
     
    160165extern void fibril_condvar_broadcast(fibril_condvar_t *);
    161166
    162 extern fibril_timer_t *fibril_timer_create(void);
     167extern fibril_timer_t *fibril_timer_create(fibril_mutex_t *);
    163168extern void fibril_timer_destroy(fibril_timer_t *);
    164169extern void fibril_timer_set(fibril_timer_t *, suseconds_t, fibril_timer_fun_t,
    165170    void *);
     171extern void fibril_timer_set_locked(fibril_timer_t *, suseconds_t,
     172    fibril_timer_fun_t, void *);
    166173extern fibril_timer_state_t fibril_timer_clear(fibril_timer_t *);
     174extern fibril_timer_state_t fibril_timer_clear_locked(fibril_timer_t *);
    167175
    168176#endif
Note: See TracChangeset for help on using the changeset viewer.