Changeset 8a930c03 for tests/concurrency
- Timestamp:
- Jun 12, 2023, 12:05:58 PM (3 years ago)
- Branches:
- master, stuck-waitfor-destruct
- Children:
- fec8bd1
- Parents:
- 2b78949 (diff), 38e266ca (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- tests/concurrency
- Files:
-
- 5 added
- 198 moved
-
.expect/clib.txt (moved) (moved from tests/concurrent/.expect/clib.txt )
-
.expect/clib_tls.txt (moved) (moved from tests/concurrent/.expect/clib_tls.txt )
-
.expect/cluster.txt (moved) (moved from tests/concurrent/.expect/cluster.txt )
-
.expect/coroutineYield.txt (moved) (moved from tests/concurrent/.expect/coroutineYield.txt )
-
.expect/ctor-check.txt (moved) (moved from tests/concurrent/.expect/ctor-check.txt ) (1 diff)
-
.expect/join.txt (moved) (moved from tests/concurrent/.expect/join.txt )
-
.expect/joinerror.sed (moved) (moved from tests/concurrent/.expect/joinerror.sed )
-
.expect/keywordErrors.txt (added)
-
.expect/lockfree_stack.txt (moved) (moved from tests/concurrent/.expect/migrate.txt )
-
.expect/mainError.txt (added)
-
.expect/migrate.txt (moved) (moved from tests/concurrent/barrier/.expect/last.txt )
-
.expect/monitor.txt (moved) (moved from tests/concurrent/.expect/monitor.txt )
-
.expect/multi-monitor.txt (moved) (moved from tests/concurrent/.expect/multi-monitor.txt )
-
.expect/once.txt (moved) (moved from tests/concurrent/.expect/once.txt )
-
.expect/preempt.txt (moved) (moved from tests/concurrent/.expect/preempt.txt )
-
.expect/preempt2.txt (moved) (moved from tests/concurrent/.expect/preempt2.txt )
-
.expect/sleep.txt (moved) (moved from tests/concurrent/.expect/sleep.txt )
-
.expect/suspend_then.txt (moved) (moved from tests/concurrent/.expect/suspend_then.txt )
-
.expect/thread.txt (moved) (moved from tests/concurrent/.expect/thread.txt )
-
actors/.expect/dynamic.txt (moved) (moved from tests/concurrent/actors/.expect/dynamic.txt )
-
actors/.expect/executor.txt (moved) (moved from tests/concurrent/actors/.expect/executor.txt )
-
actors/.expect/inherit.txt (moved) (moved from tests/concurrent/actors/.expect/inherit.txt )
-
actors/.expect/matrix.txt (moved) (moved from tests/concurrent/actors/.expect/matrix.txt )
-
actors/.expect/pingpong.txt (moved) (moved from tests/concurrent/actors/.expect/pingpong.txt )
-
actors/.expect/poison.txt (moved) (moved from tests/concurrent/actors/.expect/poison.txt )
-
actors/.expect/static.txt (moved) (moved from tests/concurrent/actors/.expect/static.txt )
-
actors/.expect/types.txt (moved) (moved from tests/concurrent/actors/.expect/types.txt )
-
actors/dynamic.cfa (moved) (moved from tests/concurrent/actors/dynamic.cfa ) (1 diff)
-
actors/executor.cfa (moved) (moved from tests/concurrent/actors/executor.cfa ) (1 diff)
-
actors/inherit.cfa (moved) (moved from tests/concurrent/actors/inherit.cfa ) (1 diff)
-
actors/matrix.cfa (moved) (moved from tests/concurrent/actors/matrix.cfa ) (1 diff)
-
actors/pingpong.cfa (moved) (moved from tests/concurrent/actors/pingpong.cfa ) (2 diffs)
-
actors/poison.cfa (moved) (moved from tests/concurrent/actors/poison.cfa ) (3 diffs)
-
actors/static.cfa (moved) (moved from tests/concurrent/actors/static.cfa ) (1 diff)
-
actors/types.cfa (moved) (moved from tests/concurrent/actors/types.cfa ) (5 diffs)
-
barrier/.expect/generation.txt (moved) (moved from tests/concurrent/barrier/.expect/generation.txt )
-
barrier/.expect/last.txt (moved) (moved from tests/concurrent/barrier/.expect/order.txt )
-
barrier/.expect/order.txt (moved) (moved from tests/concurrent/examples/.expect/datingService.txt )
-
barrier/gen_generation_expect.cfa (moved) (moved from tests/concurrent/barrier/gen_generation_expect.cfa ) (1 diff)
-
barrier/generation.cfa (moved) (moved from tests/concurrent/barrier/generation.cfa ) (1 diff)
-
barrier/last.cfa (moved) (moved from tests/concurrent/barrier/last.cfa ) (1 diff)
-
barrier/order.cfa (moved) (moved from tests/concurrent/barrier/order.cfa ) (1 diff)
-
channels/.expect/big_elems.txt (moved) (moved from tests/concurrent/channels/.expect/big_elems.txt )
-
channels/.expect/churn.txt (moved) (moved from tests/concurrent/channels/.expect/churn.txt )
-
channels/.expect/contend.txt (moved) (moved from tests/concurrent/channels/.expect/contend.txt )
-
channels/.expect/daisy_chain.txt (moved) (moved from tests/concurrent/channels/.expect/daisy_chain.txt )
-
channels/.expect/hot_potato.txt (moved) (moved from tests/concurrent/channels/.expect/hot_potato.txt )
-
channels/.expect/ping_pong.txt (moved) (moved from tests/concurrent/channels/.expect/ping_pong.txt )
-
channels/.expect/pub_sub.txt (moved) (moved from tests/concurrent/channels/.expect/pub_sub.txt )
-
channels/.expect/zero_size.txt (moved) (moved from tests/concurrent/channels/.expect/zero_size.txt )
-
channels/barrier.cfa (moved) (moved from tests/concurrent/channels/barrier.cfa )
-
channels/big_elems.cfa (moved) (moved from tests/concurrent/channels/big_elems.cfa )
-
channels/churn.cfa (moved) (moved from tests/concurrent/channels/churn.cfa )
-
channels/contend.cfa (moved) (moved from tests/concurrent/channels/contend.cfa )
-
channels/daisy_chain.cfa (moved) (moved from tests/concurrent/channels/daisy_chain.cfa )
-
channels/hot_potato.cfa (moved) (moved from tests/concurrent/channels/hot_potato.cfa )
-
channels/parallel_harness.hfa (moved) (moved from tests/concurrent/channels/parallel_harness.hfa )
-
channels/ping_pong.cfa (moved) (moved from tests/concurrent/channels/ping_pong.cfa )
-
channels/pub_sub.cfa (moved) (moved from tests/concurrent/channels/pub_sub.cfa )
-
channels/zero_size.cfa (moved) (moved from tests/concurrent/channels/zero_size.cfa )
-
clib.c (moved) (moved from tests/concurrent/clib.c )
-
clib_tls.c (moved) (moved from tests/concurrent/clib_tls.c )
-
cluster.cfa (moved) (moved from tests/concurrent/cluster.cfa )
-
coroutineYield.cfa (moved) (moved from tests/concurrent/coroutineYield.cfa )
-
ctor-check.cfa (moved) (moved from tests/concurrent/ctor-check.cfa )
-
examples/.expect/boundedBufferEXT.txt (moved) (moved from tests/concurrent/examples/.expect/boundedBufferEXT.txt )
-
examples/.expect/boundedBufferINT.txt (moved) (moved from tests/concurrent/examples/.expect/boundedBufferINT.txt )
-
examples/.expect/datingService.txt (moved) (moved from tests/concurrent/park/.expect/force_preempt.txt )
-
examples/.expect/gortn.txt (moved) (moved from tests/concurrent/examples/.expect/gortn.txt )
-
examples/.expect/matrixSum.txt (moved) (moved from tests/concurrent/examples/.expect/matrixSum.txt )
-
examples/.expect/quickSort.txt (moved) (moved from tests/concurrent/examples/.expect/quickSort.txt )
-
examples/.in/quickSort.txt (moved) (moved from tests/concurrent/examples/.in/quickSort.txt )
-
examples/boundedBufferEXT.cfa (moved) (moved from tests/concurrent/examples/boundedBufferEXT.cfa )
-
examples/boundedBufferINT.cfa (moved) (moved from tests/concurrent/examples/boundedBufferINT.cfa )
-
examples/boundedBufferTHREAD.cfa (moved) (moved from tests/concurrent/examples/boundedBufferTHREAD.cfa )
-
examples/datingService.cfa (moved) (moved from tests/concurrent/examples/datingService.cfa )
-
examples/gortn.cfa (moved) (moved from tests/concurrent/examples/gortn.cfa )
-
examples/matrixSum.cfa (moved) (moved from tests/concurrent/examples/matrixSum.cfa )
-
examples/multiSort.cfa (moved) (moved from tests/concurrent/examples/multiSort.cfa )
-
examples/quickSort.cfa (moved) (moved from tests/concurrent/examples/quickSort.cfa )
-
examples/quickSort.generic.cfa (moved) (moved from tests/concurrent/examples/quickSort.generic.cfa )
-
futures/.expect/abandon.txt (moved) (moved from tests/concurrent/futures/.expect/abandon.txt )
-
futures/.expect/basic.txt (moved) (moved from tests/concurrent/futures/.expect/basic.txt )
-
futures/.expect/multi.txt (moved) (moved from tests/concurrent/futures/.expect/multi.txt )
-
futures/.expect/select_future.txt (moved) (moved from tests/concurrent/futures/.expect/select_future.txt )
-
futures/.expect/typed.txt (moved) (moved from tests/concurrent/futures/.expect/typed.txt )
-
futures/.expect/wait_any.txt (moved) (moved from tests/concurrent/futures/.expect/wait_any.txt )
-
futures/abandon.cfa (moved) (moved from tests/concurrent/futures/abandon.cfa )
-
futures/basic.cfa (moved) (moved from tests/concurrent/futures/basic.cfa )
-
futures/multi.cfa (moved) (moved from tests/concurrent/futures/multi.cfa )
-
futures/select_future.cfa (moved) (moved from tests/concurrent/futures/select_future.cfa )
-
futures/typed.cfa (moved) (moved from tests/concurrent/futures/typed.cfa )
-
futures/wait_any.cfa (moved) (moved from tests/concurrent/futures/wait_any.cfa )
-
join.cfa (moved) (moved from tests/concurrent/join.cfa )
-
joinerror.cfa (moved) (moved from tests/concurrent/joinerror.cfa )
-
keywordErrors.cfa (moved) (moved from tests/concurrent/keywordErrors.cfa )
-
lockfree_stack.cfa (added)
-
mainError.cfa (moved) (moved from tests/concurrent/mainError.cfa )
-
migrate.cfa (moved) (moved from tests/concurrent/migrate.cfa )
-
monitor.cfa (moved) (moved from tests/concurrent/monitor.cfa )
-
multi-monitor.cfa (moved) (moved from tests/concurrent/multi-monitor.cfa )
-
mutexstmt/.expect/locks.txt (moved) (moved from tests/concurrent/mutexstmt/.expect/locks.txt )
-
mutexstmt/.expect/monitors.txt (moved) (moved from tests/concurrent/mutexstmt/.expect/monitors.txt )
-
mutexstmt/locks.cfa (moved) (moved from tests/concurrent/mutexstmt/locks.cfa )
-
mutexstmt/monitors.cfa (moved) (moved from tests/concurrent/mutexstmt/monitors.cfa )
-
once.cfa (moved) (moved from tests/concurrent/once.cfa )
-
park/.expect/contention.txt (moved) (moved from tests/concurrent/park/.expect/contention.txt )
-
park/.expect/force_preempt.txt (moved) (moved from tests/concurrent/park/.expect/start_parked.txt )
-
park/.expect/start_parked.txt (added)
-
park/contention.cfa (moved) (moved from tests/concurrent/park/contention.cfa )
-
park/force_preempt.cfa (moved) (moved from tests/concurrent/park/force_preempt.cfa )
-
park/start_parked.cfa (moved) (moved from tests/concurrent/park/start_parked.cfa )
-
preempt.cfa (moved) (moved from tests/concurrent/preempt.cfa )
-
preempt2.cfa (moved) (moved from tests/concurrent/preempt2.cfa )
-
pthread/.expect/bounded_buffer.x64.txt (moved) (moved from tests/concurrent/pthread/.expect/bounded_buffer.x64.txt )
-
pthread/.expect/bounded_buffer.x86.txt (moved) (moved from tests/concurrent/pthread/.expect/bounded_buffer.x86.txt )
-
pthread/.expect/pthread_attr_test.txt (moved) (moved from tests/concurrent/pthread/.expect/pthread_attr_test.txt )
-
pthread/.expect/pthread_cond_test.txt (moved) (moved from tests/concurrent/pthread/.expect/pthread_cond_test.txt )
-
pthread/.expect/pthread_demo_create_join.txt (moved) (moved from tests/concurrent/pthread/.expect/pthread_demo_create_join.txt )
-
pthread/.expect/pthread_demo_lock.txt (moved) (moved from tests/concurrent/pthread/.expect/pthread_demo_lock.txt )
-
pthread/.expect/pthread_key_test.txt (moved) (moved from tests/concurrent/pthread/.expect/pthread_key_test.txt )
-
pthread/.expect/pthread_once_test.txt (moved) (moved from tests/concurrent/pthread/.expect/pthread_once_test.txt )
-
pthread/bounded_buffer.cfa (moved) (moved from tests/concurrent/pthread/bounded_buffer.cfa )
-
pthread/pthread_attr_test.cfa (moved) (moved from tests/concurrent/pthread/pthread_attr_test.cfa )
-
pthread/pthread_cond_test.cfa (moved) (moved from tests/concurrent/pthread/pthread_cond_test.cfa )
-
pthread/pthread_demo_create_join.cfa (moved) (moved from tests/concurrent/pthread/pthread_demo_create_join.cfa )
-
pthread/pthread_demo_lock.cfa (moved) (moved from tests/concurrent/pthread/pthread_demo_lock.cfa )
-
pthread/pthread_key_test.cfa (moved) (moved from tests/concurrent/pthread/pthread_key_test.cfa )
-
pthread/pthread_once_test.cfa (moved) (moved from tests/concurrent/pthread/pthread_once_test.cfa )
-
readyQ/.expect/barrier_sleeper.txt (moved) (moved from tests/concurrent/readyQ/.expect/barrier_sleeper.txt )
-
readyQ/.expect/leader_spin.txt (moved) (moved from tests/concurrent/readyQ/.expect/leader_spin.txt )
-
readyQ/barrier_sleeper.cfa (moved) (moved from tests/concurrent/readyQ/barrier_sleeper.cfa ) (1 diff)
-
readyQ/leader_spin.cfa (moved) (moved from tests/concurrent/readyQ/leader_spin.cfa ) (1 diff)
-
signal/.expect/block.txt (moved) (moved from tests/concurrent/signal/.expect/block.txt )
-
signal/.expect/disjoint.txt (moved) (moved from tests/concurrent/signal/.expect/disjoint.txt )
-
signal/.expect/wait.txt (moved) (moved from tests/concurrent/signal/.expect/wait.txt )
-
signal/block.cfa (moved) (moved from tests/concurrent/signal/block.cfa )
-
signal/disjoint.cfa (moved) (moved from tests/concurrent/signal/disjoint.cfa )
-
signal/wait.cfa (moved) (moved from tests/concurrent/signal/wait.cfa )
-
sleep.cfa (moved) (moved from tests/concurrent/sleep.cfa )
-
suspend_then.cfa (moved) (moved from tests/concurrent/suspend_then.cfa )
-
thread.cfa (moved) (moved from tests/concurrent/thread.cfa )
-
unified_locking/.expect/block_spin_lock.txt (moved) (moved from tests/concurrent/unified_locking/.expect/block_spin_lock.txt )
-
unified_locking/.expect/exp_backoff.txt (moved) (moved from tests/concurrent/unified_locking/.expect/exp_backoff.txt )
-
unified_locking/.expect/fast_block_lock.txt (moved) (moved from tests/concurrent/unified_locking/.expect/fast_block_lock.txt )
-
unified_locking/.expect/futex_mutex.txt (moved) (moved from tests/concurrent/unified_locking/.expect/futex_mutex.txt )
-
unified_locking/.expect/locks.txt (moved) (moved from tests/concurrent/unified_locking/.expect/locks.txt )
-
unified_locking/.expect/mcs.txt (moved) (moved from tests/concurrent/unified_locking/.expect/mcs.txt )
-
unified_locking/.expect/mcs_block_spin_lock.txt (moved) (moved from tests/concurrent/unified_locking/.expect/mcs_block_spin_lock.txt )
-
unified_locking/.expect/mcs_spin.txt (moved) (moved from tests/concurrent/unified_locking/.expect/mcs_spin.txt )
-
unified_locking/.expect/pthread_locks.txt (moved) (moved from tests/concurrent/unified_locking/.expect/pthread_locks.txt )
-
unified_locking/.expect/simple_owner_lock.txt (moved) (moved from tests/concurrent/unified_locking/.expect/simple_owner_lock.txt )
-
unified_locking/.expect/spin_queue_lock.txt (moved) (moved from tests/concurrent/unified_locking/.expect/spin_queue_lock.txt )
-
unified_locking/.expect/timeout_lock.txt (moved) (moved from tests/concurrent/unified_locking/.expect/timeout_lock.txt )
-
unified_locking/block_spin_lock.cfa (moved) (moved from tests/concurrent/unified_locking/block_spin_lock.cfa )
-
unified_locking/exp_backoff.cfa (moved) (moved from tests/concurrent/unified_locking/exp_backoff.cfa )
-
unified_locking/fast_block_lock.cfa (moved) (moved from tests/concurrent/unified_locking/fast_block_lock.cfa )
-
unified_locking/futex_mutex.cfa (moved) (moved from tests/concurrent/unified_locking/futex_mutex.cfa )
-
unified_locking/locks.cfa (moved) (moved from tests/concurrent/unified_locking/locks.cfa )
-
unified_locking/mcs.cfa (moved) (moved from tests/concurrent/unified_locking/mcs.cfa )
-
unified_locking/mcs_block_spin_lock.cfa (moved) (moved from tests/concurrent/unified_locking/mcs_block_spin_lock.cfa )
-
unified_locking/mcs_spin.cfa (moved) (moved from tests/concurrent/unified_locking/mcs_spin.cfa )
-
unified_locking/mutex_test.hfa (moved) (moved from tests/concurrent/unified_locking/mutex_test.hfa )
-
unified_locking/pthread_locks.cfa (moved) (moved from tests/concurrent/unified_locking/pthread_locks.cfa )
-
unified_locking/simple_owner_lock.cfa (moved) (moved from tests/concurrent/unified_locking/simple_owner_lock.cfa )
-
unified_locking/spin_queue_lock.cfa (moved) (moved from tests/concurrent/unified_locking/spin_queue_lock.cfa )
-
unified_locking/spintest.cfa (moved) (moved from tests/concurrent/unified_locking/spintest.cfa )
-
unified_locking/test_debug.cfa (moved) (moved from tests/concurrent/unified_locking/test_debug.cfa )
-
unified_locking/thread_test.cfa (moved) (moved from tests/concurrent/unified_locking/thread_test.cfa )
-
unified_locking/timeout_lock.cfa (moved) (moved from tests/concurrent/unified_locking/timeout_lock.cfa )
-
waitfor/.expect/barge.txt (moved) (moved from tests/concurrent/waitfor/.expect/barge.txt )
-
waitfor/.expect/dtor.txt (moved) (moved from tests/concurrent/waitfor/.expect/dtor.txt )
-
waitfor/.expect/else.txt (moved) (moved from tests/concurrent/waitfor/.expect/else.txt )
-
waitfor/.expect/parse.txt (added)
-
waitfor/.expect/recurse.txt (moved) (moved from tests/concurrent/waitfor/.expect/recurse.txt )
-
waitfor/.expect/statment.txt (moved) (moved from tests/concurrent/waitfor/.expect/statment.txt )
-
waitfor/.expect/when.txt (moved) (moved from tests/concurrent/waitfor/.expect/when.txt )
-
waitfor/barge.cfa (moved) (moved from tests/concurrent/waitfor/barge.cfa )
-
waitfor/dtor.cfa (moved) (moved from tests/concurrent/waitfor/dtor.cfa )
-
waitfor/else.cfa (moved) (moved from tests/concurrent/waitfor/else.cfa )
-
waitfor/parse.cfa (moved) (moved from tests/concurrent/waitfor/parse.cfa )
-
waitfor/recurse.cfa (moved) (moved from tests/concurrent/waitfor/recurse.cfa )
-
waitfor/simple.cfa (moved) (moved from tests/concurrent/waitfor/simple.cfa )
-
waitfor/statment.cfa (moved) (moved from tests/concurrent/waitfor/statment.cfa )
-
waitfor/when.cfa (moved) (moved from tests/concurrent/waitfor/when.cfa )
-
waituntil/.expect/all_types.txt (moved) (moved from tests/concurrent/waituntil/.expect/all_types.txt )
-
waituntil/.expect/basic_else.txt (moved) (moved from tests/concurrent/waituntil/.expect/basic_else.txt )
-
waituntil/.expect/channel_close.txt (moved) (moved from tests/concurrent/waituntil/.expect/channel_close.txt )
-
waituntil/.expect/channel_zero_size.txt (moved) (moved from tests/concurrent/waituntil/.expect/channel_zero_size.txt )
-
waituntil/.expect/channels.txt (moved) (moved from tests/concurrent/waituntil/.expect/channels.txt )
-
waituntil/.expect/futures.txt (moved) (moved from tests/concurrent/waituntil/.expect/futures.txt )
-
waituntil/.expect/locks.txt (moved) (moved from tests/concurrent/waituntil/.expect/locks.txt )
-
waituntil/.expect/one_chan.txt (moved) (moved from tests/concurrent/waituntil/.expect/one_chan.txt )
-
waituntil/.expect/timeout.txt (moved) (moved from tests/concurrent/waituntil/.expect/timeout.txt )
-
waituntil/all_types.cfa (moved) (moved from tests/concurrent/waituntil/all_types.cfa )
-
waituntil/basic_else.cfa (moved) (moved from tests/concurrent/waituntil/basic_else.cfa )
-
waituntil/channel_close.cfa (moved) (moved from tests/concurrent/waituntil/channel_close.cfa )
-
waituntil/channel_zero_size.cfa (moved) (moved from tests/concurrent/waituntil/channel_zero_size.cfa )
-
waituntil/channels.cfa (moved) (moved from tests/concurrent/waituntil/channels.cfa )
-
waituntil/futures.cfa (moved) (moved from tests/concurrent/waituntil/futures.cfa )
-
waituntil/locks.cfa (moved) (moved from tests/concurrent/waituntil/locks.cfa ) (1 diff)
-
waituntil/one_chan.cfa (moved) (moved from tests/concurrent/waituntil/one_chan.cfa )
-
waituntil/timeout.cfa (moved) (moved from tests/concurrent/waituntil/timeout.cfa )
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrency/.expect/ctor-check.txt
r2b78949 r8a930c03 1 concurren t/ctor-check.cfa:11:1 error: constructors cannot have mutex parameters1 concurrency/ctor-check.cfa:11:1 error: constructors cannot have mutex parameters 2 2 ?{}: function 3 3 ... with parameters -
tests/concurrency/actors/dynamic.cfa
r2b78949 r8a930c03 19 19 void ?{}( derived_msg & this ) { ((derived_msg &)this){ 0 }; } 20 20 21 Allocation receive( derived_actor & receiver, derived_msg & msg ) {21 allocation receive( derived_actor & receiver, derived_msg & msg ) { 22 22 if ( msg.cnt >= Times ) { 23 23 sout | "Done"; -
tests/concurrency/actors/executor.cfa
r2b78949 r8a930c03 24 24 struct d_msg { inline message; } shared_msg; 25 25 26 Allocation receive( d_actor & this, d_msg & msg ) with( this ) {26 allocation receive( d_actor & this, d_msg & msg ) with( this ) { 27 27 if ( recs == rounds ) return Finished; 28 28 if ( recs % Batch == 0 ) { -
tests/concurrency/actors/inherit.cfa
r2b78949 r8a930c03 15 15 void ^?{}( D_msg & this ) { mutex(sout) sout | 'A'; } 16 16 17 Allocation handle() {17 allocation handle() { 18 18 return Finished; 19 19 } 20 20 21 Allocation receive( Server & receiver, D_msg & msg ) { return handle(); }22 Allocation receive( Server & receiver, D_msg2 & msg ) { return handle(); }23 Allocation receive( Server2 & receiver, D_msg & msg ) { return Delete; }24 Allocation receive( Server2 & receiver, D_msg2 & msg ) { return Delete; }21 allocation receive( Server & receiver, D_msg & msg ) { return handle(); } 22 allocation receive( Server & receiver, D_msg2 & msg ) { return handle(); } 23 allocation receive( Server2 & receiver, D_msg & msg ) { return Delete; } 24 allocation receive( Server2 & receiver, D_msg2 & msg ) { return Delete; } 25 25 26 26 int main() { -
tests/concurrency/actors/matrix.cfa
r2b78949 r8a930c03 24 24 } 25 25 26 Allocation receive( derived_actor & receiver, derived_msg & msg ) {26 allocation receive( derived_actor & receiver, derived_msg & msg ) { 27 27 for ( unsigned int i = 0; i < yc; i += 1 ) { // multiply X_row by Y_col and sum products 28 28 msg.Z[i] = 0; -
tests/concurrency/actors/pingpong.cfa
r2b78949 r8a930c03 19 19 size_t times = 100000; 20 20 21 Allocation receive( ping & receiver, p_msg & msg ) {21 allocation receive( ping & receiver, p_msg & msg ) { 22 22 msg.count++; 23 23 if ( msg.count > times ) return Finished; 24 24 25 Allocation retval = Nodelete;25 allocation retval = Nodelete; 26 26 if ( msg.count == times ) retval = Finished; 27 27 *po << msg; … … 29 29 } 30 30 31 Allocation receive( pong & receiver, p_msg & msg ) {31 allocation receive( pong & receiver, p_msg & msg ) { 32 32 msg.count++; 33 33 if ( msg.count > times ) return Finished; 34 34 35 Allocation retval = Nodelete;35 allocation retval = Nodelete; 36 36 if ( msg.count == times ) retval = Finished; 37 37 *pi << msg; -
tests/concurrency/actors/poison.cfa
r2b78949 r8a930c03 18 18 Server s[10]; 19 19 for ( i; 10 ) { 20 s[i] << FinishedMsg;20 s[i] << finished_msg; 21 21 } 22 22 stop_actor_system(); … … 29 29 Server * s = alloc(); 30 30 (*s){}; 31 (*s) << DeleteMsg;31 (*s) << delete_msg; 32 32 } 33 33 stop_actor_system(); … … 39 39 Server s[10]; 40 40 for ( i; 10 ) 41 s[i] << DestroyMsg;41 s[i] << destroy_msg; 42 42 stop_actor_system(); 43 43 for ( i; 10 ) -
tests/concurrency/actors/static.cfa
r2b78949 r8a930c03 19 19 void ?{}( derived_msg & this ) { ((derived_msg &)this){ 0 }; } 20 20 21 Allocation receive( derived_actor & receiver, derived_msg & msg ) {21 allocation receive( derived_actor & receiver, derived_msg & msg ) { 22 22 if ( msg.cnt >= Times ) { 23 23 sout | "Done"; -
tests/concurrency/actors/types.cfa
r2b78949 r8a930c03 20 20 21 21 // this isn't a valid receive routine since int is not a message type 22 Allocation receive( derived_actor & receiver, int i ) with( receiver ) {22 allocation receive( derived_actor & receiver, int i ) with( receiver ) { 23 23 mutex(sout) sout | i; 24 24 counter++; … … 27 27 } 28 28 29 Allocation receive( derived_actor & receiver, d_msg & msg ) {29 allocation receive( derived_actor & receiver, d_msg & msg ) { 30 30 return receive( receiver, msg.num ); 31 31 } … … 36 36 }; 37 37 38 Allocation receive( derived_actor2 & receiver, d_msg & msg ) {38 allocation receive( derived_actor2 & receiver, d_msg & msg ) { 39 39 mutex(sout) sout | msg.num; 40 40 return Finished; … … 48 48 }; 49 49 50 Allocation receive( derived_actor3 & receiver, d_msg & msg ) {50 allocation receive( derived_actor3 & receiver, d_msg & msg ) { 51 51 mutex(sout) sout | msg.num; 52 52 if ( msg.num == -1 ) return Nodelete; … … 54 54 } 55 55 56 Allocation receive( derived_actor3 & receiver, d_msg2 & msg ) {56 allocation receive( derived_actor3 & receiver, d_msg2 & msg ) { 57 57 mutex(sout) sout | msg.num; 58 58 return Finished; -
tests/concurrency/barrier/gen_generation_expect.cfa
r2b78949 r8a930c03 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // gen_generation_expect.cfa -- simple 'script' generates the expect file for concurren t/barrier/generation7 // gen_generation_expect.cfa -- simple 'script' generates the expect file for concurrency/barrier/generation 8 8 // 9 9 // Author : Thierry Delisle -
tests/concurrency/barrier/generation.cfa
r2b78949 r8a930c03 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // concurrent/barrier/generation.cfa -- simple test that validates barriers by printing 8 // alphabetical generations 7 // generation.cfa -- simple test that validates barriers by printing alphabetical generations 9 8 // 10 9 // Author : Thierry Delisle -
tests/concurrency/barrier/last.cfa
r2b78949 r8a930c03 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // concurrent/barrier/last.cfa -- validates barrier's last hook functionality7 // last.cfa -- validates barrier's last hook functionality 8 8 // 9 9 // Author : Thierry Delisle -
tests/concurrency/barrier/order.cfa
r2b78949 r8a930c03 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // concurrent/barrier/order.cfa -- validates barriers the return value of7 // order.cfa -- validates barriers the return value of 8 8 // barrier block 9 9 // -
tests/concurrency/readyQ/barrier_sleeper.cfa
r2b78949 r8a930c03 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // concurrent/readyQ/barrier_sleeper.cfa -- testing the ready-queue7 // barrier_sleeper.cfa -- testing the ready-queue 8 8 // 9 9 // Author : Thierry Delisle -
tests/concurrency/readyQ/leader_spin.cfa
r2b78949 r8a930c03 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // concurrent/readyQ/leader_spin.cfa -- validates ready queue fairness7 // leader_spin.cfa -- validates ready queue fairness 8 8 // 9 9 // Author : Thierry Delisle -
tests/concurrency/waituntil/locks.cfa
r2b78949 r8a930c03 2 2 #include <thread.hfa> 3 3 #include <locks.hfa> 4 #include <fstream.hfa> 4 5 #include <mutex_stmt.hfa> 5 6
Note:
See TracChangeset
for help on using the changeset viewer.