Ignore:
Timestamp:
Jun 18, 2017, 10:06:41 PM (7 years ago)
Author:
alain
Message:

Introduce syscalls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/libk/remote_rwlock.c

    r1 r23  
    22 * remote_rwlock.c - kernel remote rwlock implementation.
    33 *
    4  * Authors  Mohamed Karaoui (2015)
    5  *          Alain   Greiner (2016)
     4 * Authors    Alain   Greiner (2016,2017)
    65 *
    76 * Copyright (c) UPMC Sorbonne Universites
     
    6766
    6867    // get next free ticket
    69     ticket = hal_remote_lw( ticket_xp );
    70 
    71     // loop to take the lock
     68    ticket = hal_remote_atomic_add( ticket_xp , 1 );
     69
     70    // busy waiting loop to take the lock
    7271        while( ticket != hal_remote_lw( current_xp ) )
    7372        {
     
    147146
    148147    // get next free ticket
    149     ticket = hal_remote_lw( ticket_xp );
     148    ticket = hal_remote_atomic_add( ticket_xp , 1 );
    150149
    151150    // loop to take the lock
Note: See TracChangeset for help on using the changeset viewer.