Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 45cbcaf4 in mainline for uspace/lib/c/generic/fibril_synch.c


Ignore:
Timestamp:
2012-08-13T17:56:15Z (9 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master
Children:
14c5005
Parents:
3a58347
Message:

avoid deadlocks by replacing gettimeofday() with getuptime() in lib/async.c and lib/fibril_sync.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/fibril_synch.c

    r3a58347 r45cbcaf4  
    379379        futex_down(&async_futex);
    380380        if (timeout) {
    381                 gettimeofday(&wdata.to_event.expires, NULL);
     381                getuptime(&wdata.to_event.expires);
    382382                tv_add(&wdata.to_event.expires, timeout);
    383383                async_insert_timeout(&wdata);
Note: See TracChangeset for help on using the changeset viewer.