Ignore:
Timestamp:
2011-01-07T14:40:56Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8324b65
Parents:
92f924c8
Message:

Add synchronization via fibril_semaphore

WARNING: fibril_semaphore BREAKS the deadlock detection system
used by fibril synch primitives

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci/utils/hc_synchronizer.h

    r92f924c8 r7bd34e5  
    3737#include <assert.h>
    3838#include <driver.h>
    39 #include <fibril.h>
    4039#include <usb/usb.h>
    4140
    4241#include "debug.h"
     42#include "utils/fibril_semaphore.h"
    4343
    4444typedef struct value
    4545{
    4646        /* TODO Think of better fibril synch to use */
    47         fid_t waiting_fibril;
    4847        usb_transaction_outcome_t result;
    4948        size_t size;
    50         bool done;
     49        fibril_semaphore_t done;
    5150} sync_value_t;
     51
     52void sync_init(sync_value_t *value);
    5253
    5354void sync_wait_for(sync_value_t *value);
Note: See TracChangeset for help on using the changeset viewer.