Line | |
---|
1 | /* |
---|
2 | * swift_context.h |
---|
3 | * |
---|
4 | * (c) 2009 Ionut Rosoiu <ionut.rosoiu@gmail.com> |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #ifndef SWIFT_CONTEXT_H_ |
---|
9 | #define SWIFT_CONTEXT_H_ |
---|
10 | |
---|
11 | #include "swift_common.h" |
---|
12 | #include "swift_assert.h" |
---|
13 | #include "swift_declarations.h" |
---|
14 | #include "swift_allocator.h" |
---|
15 | #include "swift_deque.h" |
---|
16 | #include "swift_declarations.h" |
---|
17 | #include "swift_thread.h" |
---|
18 | |
---|
19 | struct swift_context { |
---|
20 | volatile int parallel_finished; /*< true if the parallel region finished */ |
---|
21 | swift_size_t thread_num; /*< the number of threads */ |
---|
22 | swift_thread_t *threads; /*< the threads */ |
---|
23 | }; |
---|
24 | |
---|
25 | void swift_context_init(swift_context_t *context, swift_size_t nprocs); |
---|
26 | |
---|
27 | void swift_context_destroy(swift_context_t *context); |
---|
28 | |
---|
29 | |
---|
30 | #endif /* SWIFT_CONTEXT_H_ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.