Changeset 423 for trunk/kernel/libk/barrier.h
- Timestamp:
- Jan 29, 2018, 5:49:38 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/barrier.h
r16 r423 10 10 * ALMOS-MKH is free software; you can redistribute it and/or modify it 11 11 * 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. 13 13 * 14 14 * ALMOS-MKH is distributed in the hope that it will be useful, but … … 38 38 typedef struct barrier_s 39 39 { 40 uint32_t current; // number of arrived threads41 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]; 43 43 } 44 44 barrier_t;
Note: See TracChangeset
for help on using the changeset viewer.