Changeset 45c8eea in mainline for uspace/lib/c/generic/async/server.c
- Timestamp:
- 2018-11-11T15:47:39Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f4cb6c5f
- Parents:
- 269bc459
- git-author:
- Jakub Jermar <jakub@…> (2018-11-10 17:49:44)
- git-committer:
- Jakub Jermar <jakub@…> (2018-11-11 15:47:39)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/async/server.c
r269bc459 r45c8eea 216 216 } 217 217 218 static FIBRIL_RMUTEX_INITIALIZE(client_mutex);218 static fibril_rmutex_t client_mutex; 219 219 static hash_table_t client_hash_table; 220 220 221 221 // TODO: lockfree notification_queue? 222 static FIBRIL_RMUTEX_INITIALIZE(notification_mutex);222 static fibril_rmutex_t notification_mutex; 223 223 static hash_table_t notification_hash_table; 224 224 static LIST_INITIALIZE(notification_queue); … … 1013 1013 void __async_server_init(void) 1014 1014 { 1015 if (fibril_rmutex_initialize(&client_mutex) != EOK) 1016 abort(); 1017 if (fibril_rmutex_initialize(¬ification_mutex) != EOK) 1018 abort(); 1019 1015 1020 if (!hash_table_create(&client_hash_table, 0, 0, &client_hash_table_ops)) 1016 1021 abort();
Note:
See TracChangeset
for help on using the changeset viewer.