Changeset 4e1b57d in mainline for uspace/lib/libblock/libblock.h
- Timestamp:
- 2009-06-17T22:08:05Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ca093b3
- Parents:
- 6ebe721
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libblock/libblock.h
r6ebe721 r4e1b57d 40 40 #include <stdint.h> 41 41 #include "../../srv/vfs/vfs.h" 42 #include <futex.h> 43 #include <rwlock.h> 42 #include <fibril_sync.h> 44 43 #include <adt/hash_table.h> 45 44 #include <adt/list.h> … … 64 63 65 64 typedef struct block { 66 /** Futex protecting the reference count. */67 f utex_t lock;65 /** Mutex protecting the reference count. */ 66 fibril_mutex_t lock; 68 67 /** Number of references to the block_t structure. */ 69 68 unsigned refcnt; … … 71 70 bool dirty; 72 71 /** Readers / Writer lock protecting the contents of the block. */ 73 rwlock_t contents_lock;72 fibril_rwlock_t contents_lock; 74 73 /** Handle of the device where the block resides. */ 75 74 dev_handle_t dev_handle;
Note:
See TracChangeset
for help on using the changeset viewer.