Changeset 16 for trunk/kernel/libk
- Timestamp:
- May 10, 2017, 5:04:01 PM (8 years ago)
- Location:
- trunk/kernel/libk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/barrier.c
r14 r16 24 24 #include <hal_types.h> 25 25 #include <hal_remote.h> 26 #include <hal_atomic.h> 26 27 #include <barrier.h> 27 28 -
trunk/kernel/libk/barrier.h
r14 r16 38 38 typedef struct barrier_s 39 39 { 40 volatileuint32_t current; // number of arrived threads41 volatileuint32_t sense; // barrier state (toggle)42 uint32_t 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]; 43 43 } 44 44 barrier_t;
Note: See TracChangeset
for help on using the changeset viewer.