Changeset 4e1b57d in mainline for uspace/lib/libblock/libblock.h


Ignore:
Timestamp:
2009-06-17T22:08:05Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ca093b3
Parents:
6ebe721
Message:

Use fibril synchronization in libblock.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libblock/libblock.h

    r6ebe721 r4e1b57d  
    4040#include <stdint.h>
    4141#include "../../srv/vfs/vfs.h"
    42 #include <futex.h>
    43 #include <rwlock.h>
     42#include <fibril_sync.h>
    4443#include <adt/hash_table.h>
    4544#include <adt/list.h>
     
    6463
    6564typedef struct block {
    66         /** Futex protecting the reference count. */
    67         futex_t lock;
     65        /** Mutex protecting the reference count. */
     66        fibril_mutex_t lock;
    6867        /** Number of references to the block_t structure. */
    6968        unsigned refcnt;
     
    7170        bool dirty;
    7271        /** Readers / Writer lock protecting the contents of the block. */
    73         rwlock_t contents_lock;
     72        fibril_rwlock_t contents_lock;
    7473        /** Handle of the device where the block resides. */
    7574        dev_handle_t dev_handle;
Note: See TracChangeset for help on using the changeset viewer.