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


Ignore:
Timestamp:
2012-01-12T08:48:51Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
99c2e9f3
Parents:
5923cf82
Message:

remcons: attribute renaming

File:
1 edited

Legend:

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

    r5923cf82 r261bbdc  
    8989
    9090        fibril_condvar_initialize(&user->refcount_cv);
    91         fibril_mutex_initialize(&user->refcount_mutex);
     91        fibril_mutex_initialize(&user->guard);
    9292        user->task_finished = false;
    9393        user->socket_closed = false;
     
    139139
    140140        telnet_user_t *tmp = user;
    141         fibril_mutex_lock(&tmp->refcount_mutex);
     141        fibril_mutex_lock(&tmp->guard);
    142142        user->locsrv_connection_count++;
    143143
     
    151151        }
    152152
    153         fibril_mutex_unlock(&tmp->refcount_mutex);
     153        fibril_mutex_unlock(&tmp->guard);
    154154
    155155
     
    165165void telnet_user_notify_client_disconnected(telnet_user_t *user)
    166166{
    167         fibril_mutex_lock(&user->refcount_mutex);
     167        fibril_mutex_lock(&user->guard);
    168168        assert(user->locsrv_connection_count > 0);
    169169        user->locsrv_connection_count--;
    170170        fibril_condvar_signal(&user->refcount_cv);
    171         fibril_mutex_unlock(&user->refcount_mutex);
     171        fibril_mutex_unlock(&user->guard);
    172172}
    173173
Note: See TracChangeset for help on using the changeset viewer.