Changeset e721462 in mainline


Ignore:
Timestamp:
2010-10-10T15:51:03Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f99c191
Parents:
e9460aa
Message:

Use the standard supported initializers for fibril mutexes and rwlocks.

Location:
uspace/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/net/socket_client.c

    re9460aa re721462  
    177177//      .last_id = 0,
    178178        .sockets = NULL,
    179         .lock = {
    180                 .readers = 0,
    181                 .writers = 0,
    182                 .waiters = {
    183                         .prev = &socket_globals.lock.waiters,   /* XXX */
    184                         .next = &socket_globals.lock.waiters    /* XXX */
    185                 }
    186         }
     179        .lock = FIBRIL_RWLOCK_INITIALIZER(socket_globals.lock)
    187180};
    188181
  • uspace/lib/socket/packet/packet_server.c

    re9460aa re721462  
    8585        unsigned int count;
    8686} ps_globals = {
    87         .lock = {
    88                 .counter = 1,
    89                 .waiters = {
    90                         .prev = &ps_globals.lock.waiters,
    91                         .next = &ps_globals.lock.waiters,
    92                 }
    93         },
     87        .lock = FIBRIL_MUTEX_INITIALIZER(ps_globals.lock),
    9488        .free = {NULL, NULL, NULL, NULL, NULL, NULL, NULL},
    9589        .sizes = {PAGE_SIZE, PAGE_SIZE * 2, PAGE_SIZE * 4, PAGE_SIZE * 8, PAGE_SIZE * 16, PAGE_SIZE * 32, PAGE_SIZE * 64},
Note: See TracChangeset for help on using the changeset viewer.