Changeset 261bbdc in mainline for uspace/srv/hid/remcons/user.c
- Timestamp:
- 2012-01-12T08:48:51Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 99c2e9f3
- Parents:
- 5923cf82
- File:
-
- 1 edited
-
uspace/srv/hid/remcons/user.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/remcons/user.c
r5923cf82 r261bbdc 89 89 90 90 fibril_condvar_initialize(&user->refcount_cv); 91 fibril_mutex_initialize(&user-> refcount_mutex);91 fibril_mutex_initialize(&user->guard); 92 92 user->task_finished = false; 93 93 user->socket_closed = false; … … 139 139 140 140 telnet_user_t *tmp = user; 141 fibril_mutex_lock(&tmp-> refcount_mutex);141 fibril_mutex_lock(&tmp->guard); 142 142 user->locsrv_connection_count++; 143 143 … … 151 151 } 152 152 153 fibril_mutex_unlock(&tmp-> refcount_mutex);153 fibril_mutex_unlock(&tmp->guard); 154 154 155 155 … … 165 165 void telnet_user_notify_client_disconnected(telnet_user_t *user) 166 166 { 167 fibril_mutex_lock(&user-> refcount_mutex);167 fibril_mutex_lock(&user->guard); 168 168 assert(user->locsrv_connection_count > 0); 169 169 user->locsrv_connection_count--; 170 170 fibril_condvar_signal(&user->refcount_cv); 171 fibril_mutex_unlock(&user-> refcount_mutex);171 fibril_mutex_unlock(&user->guard); 172 172 } 173 173
Note:
See TracChangeset
for help on using the changeset viewer.
