Changeset 8562724 in mainline for uspace/srv/hid/remcons/user.c


Ignore:
Timestamp:
2012-01-12T08:16:42Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d545d03
Parents:
30d4706
Message:

remcons: minor refactoring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/remcons/user.c

    r30d4706 r8562724  
    5353#include <io/console.h>
    5454#include <inttypes.h>
     55#include <assert.h>
    5556#include "user.h"
    5657
     
    146147}
    147148
     149void 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}
    148157
    149158
Note: See TracChangeset for help on using the changeset viewer.