Ignore:
Timestamp:
Jan 29, 2018, 5:49:38 PM (4 years ago)
Author:
alain
Message:

cosmetic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/libk/barrier.h

    r16 r423  
    1010 * ALMOS-MKH is free software; you can redistribute it and/or modify it
    1111 * under the terms of the GNU General Public License as published by
    12 err* the Free Software Foundation; version 2.0 of the License.
     12 * the Free Software Foundation; version 2.0 of the License.
    1313 *
    1414 * ALMOS-MKH is distributed in the hope that it will be useful, but
     
    3838typedef struct barrier_s
    3939{
    40     uint32_t   current;            // number of arrived threads
    41     uint32_t   sense;              // barrier state (toggle)
    42     uint32_t   pad[(CONFIG_CACHE_LINE_SIZE>>2)-2];
     40    uint32_t            current;            // number of arrived threads
     41    volatile uint32_t   sense;              // barrier state (toggle)
     42    uint32_t            pad[(CONFIG_CACHE_LINE_SIZE>>2)-2];
    4343}
    4444barrier_t;
Note: See TracChangeset for help on using the changeset viewer.