You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
set(QTHREADS_HASHMAP hashmap CACHESTRING"Which hashmap implementation to use. Valid values are \"hashmap\" and \"lf_hashmap\".")
9
9
set(QTHREADS_DICT_TYPE shavit CACHESTRING"Which dictionary implementation to use. Valid values are \"shavit\", \"trie\", and \"simple\".")
10
10
set(QTHREADS_TIMER_TYPE gettimeofday CACHESTRING"Which timer implementation to use. Valid values are \"clock_gettime\", \"mach\", \"gettimeofday\", and \"gethrtime\".")
11
+
set(QTHREADS_CONTEXT_SWAP_IMPL fastcontext CACHESTRING"Which context swap implementation to use. Valid values are \"system\" and \"fastcontext\".")
11
12
12
13
set(QTHREADS_SOURCES
13
14
cacheline.c
@@ -34,8 +35,6 @@ set(QTHREADS_SOURCES
34
35
touch.c
35
36
tls.c
36
37
teams.c
37
-
fastcontext/asm.S
38
-
fastcontext/context.c
39
38
${QTHREADS_HASHMAP}.c
40
39
ds/qarray.c
41
40
ds/qdqueue.c
@@ -60,10 +59,16 @@ set(QTHREADS_SOURCES
60
59
patterns/wavefront.c
61
60
)
62
61
63
-
# TODO: switch/checks necessary to include the correct
64
-
# fastcontext version when we need the fallback.
65
-
66
62
add_library(qthread SHARED ${QTHREADS_SOURCES})
63
+
64
+
if ("${QTHREADS_CONTEXT_SWAP_IMPL}"STREQUAL"fastcontext")
0 commit comments