Changes in / [48786bc8:ee2938a]
- Location:
- src
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/coroutine.c
r48786bc8 ree2938a 99 99 // Wrapper for co 100 100 void CoroutineCtxSwitch(coroutine_desc* src, coroutine_desc* dst) { 101 // THREAD_GETMEM( This )->disableInterrupts();101 disable_interrupts(); 102 102 103 103 // set state of current coroutine to inactive … … 115 115 src->state = Active; 116 116 117 // THREAD_GETMEM( This )->enableInterrupts();117 enable_interrupts( __cfaabi_dbg_ctx ); 118 118 } //ctxSwitchDirect 119 119 -
src/tests/preempt_longrun/Makefile.am
r48786bc8 ree2938a 18 18 max_time=600 19 19 preempt=1_000ul 20 debug=-debug 20 21 21 22 REPEAT = ${abs_top_srcdir}/tools/repeat 22 23 TIME = /usr/bin/time -f "%E" 23 24 24 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ - debug -O2 -DPREEMPTION_RATE=${preempt}25 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} 25 26 CFLAGS = ${BUILD_FLAGS} 26 27 CC = @CFA_BINDIR@/@CFA_NAME@ 27 28 28 TESTS = block c reate disjoint enter enter3 processor stack wait yield29 TESTS = block coroutine create disjoint enter enter3 processor stack wait yield 29 30 30 31 .INTERMEDIATE: ${TESTS} … … 36 37 37 38 % : %.c ${CC} 38 ${AM_V_GEN}${CC} ${CFLAGS} ${<} -o ${@}39 ${AM_V_GEN}${CC} ${CFLAGS} ${<} $(debug) -o ${@} 39 40 40 41 %.run : % ${REPEAT} -
src/tests/preempt_longrun/Makefile.in
r48786bc8 ree2938a 451 451 max_time = 600 452 452 preempt = 1_000ul 453 debug = -debug 453 454 REPEAT = ${abs_top_srcdir}/tools/repeat 454 455 TIME = /usr/bin/time -f "%E" 455 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ - debug -O2 -DPREEMPTION_RATE=${preempt}456 TESTS = block c reate disjoint enter enter3 processor stack wait yield456 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} 457 TESTS = block coroutine create disjoint enter enter3 processor stack wait yield 457 458 all: all-am 458 459 … … 643 644 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ 644 645 "$$tst" $(AM_TESTS_FD_REDIRECT) 646 coroutine.log: coroutine 647 @p='coroutine'; \ 648 b='coroutine'; \ 649 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ 650 --log-file $$b.log --trs-file $$b.trs \ 651 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ 652 "$$tst" $(AM_TESTS_FD_REDIRECT) 645 653 create.log: create 646 654 @p='create'; \ … … 873 881 874 882 % : %.c ${CC} 875 ${AM_V_GEN}${CC} ${CFLAGS} ${<} -o ${@}883 ${AM_V_GEN}${CC} ${CFLAGS} ${<} $(debug) -o ${@} 876 884 877 885 %.run : % ${REPEAT}
Note: See TracChangeset
for help on using the changeset viewer.