Changeset 8562724 in mainline
- Timestamp:
- 2012-01-12T08:16:42Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d545d03
- Parents:
- 30d4706
- Location:
- uspace/srv/hid/remcons
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/remcons/remcons.c
r30d4706 r8562724 254 254 255 255 /* Announce user disconnection. */ 256 fibril_mutex_lock(&user->refcount_mutex); 257 user->locsrv_connection_count--; 258 fibril_condvar_signal(&user->refcount_cv); 259 fibril_mutex_unlock(&user->refcount_mutex); 256 telnet_user_notify_client_disconnected(user); 260 257 } 261 258 -
uspace/srv/hid/remcons/user.c
r30d4706 r8562724 53 53 #include <io/console.h> 54 54 #include <inttypes.h> 55 #include <assert.h> 55 56 #include "user.h" 56 57 … … 146 147 } 147 148 149 void telnet_user_notify_client_disconnected(telnet_user_t *user) 150 { 151 fibril_mutex_lock(&user->refcount_mutex); 152 assert(user->locsrv_connection_count > 0); 153 user->locsrv_connection_count--; 154 fibril_condvar_signal(&user->refcount_cv); 155 fibril_mutex_unlock(&user->refcount_mutex); 156 } 148 157 149 158 -
uspace/srv/hid/remcons/user.h
r30d4706 r8562724 67 67 void telnet_user_destroy(telnet_user_t *user); 68 68 telnet_user_t *telnet_user_get_for_client_connection(service_id_t id); 69 void telnet_user_notify_client_disconnected(telnet_user_t *user); 69 70 70 71 #endif
Note:
See TracChangeset
for help on using the changeset viewer.