Changeset 1a7203d for libcfa/src/concurrency
- Timestamp:
- Oct 13, 2024, 12:28:15 PM (4 months ago)
- Branches:
- master
- Children:
- c565d68
- Parents:
- 1a8b17a
- Location:
- libcfa/src/concurrency
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/actor.hfa
r1a8b17a r1a7203d 710 710 // Default messages to send to any actor to change status 711 711 // assigned at creation to __base_msg_finished to avoid unused message warning 712 message __base_msg_finished @= { .alloc :Finished };712 message __base_msg_finished @= { .alloc = Finished }; 713 713 struct delete_msg_t { inline message; } delete_msg = __base_msg_finished; 714 714 struct destroy_msg_t { inline message; } destroy_msg = __base_msg_finished; … … 718 718 allocation receive( actor & this, destroy_msg_t & msg ) { return Destroy; } 719 719 allocation receive( actor & this, finished_msg_t & msg ) { return Finished; } 720 721 // Default messages used all the time. 722 //static struct startmsg_t { inline message; } start_msg; // start actor 723 //static struct stopmsg_t { inline message; } stop_msg; // terminate actor -
libcfa/src/concurrency/kernel/startup.cfa
r1a8b17a r1a7203d 132 132 // Global state 133 133 __thread struct KernelThreadData __cfaabi_tls __attribute__ ((tls_model ( "initial-exec" ))) @= { 134 .this_thread :NULL, // cannot use 0p135 .this_processor :NULL,136 .sched_lock :false,137 .preemption_state : { .disable_count : 1, .enabled : false, .in_progress :false },134 .this_thread = NULL, // cannot use 0p 135 .this_processor = NULL, 136 .sched_lock = false, 137 .preemption_state = { .disable_count = 1, .enabled = false, .in_progress = false }, 138 138 // random_state uninitialized 139 .ready_rng : { .fwd_seed : 0, .bck_seed :0 },140 .this_stats :NULL,139 .ready_rng = { .fwd_seed = 0, .bck_seed = 0 }, 140 .this_stats = NULL, 141 141 #ifdef __CFA_WITH_VERIFY__ 142 .in_sched_lock :false,143 .sched_id :0,142 .in_sched_lock = false, 143 .sched_id = 0, 144 144 #endif 145 145 };
Note: See TracChangeset
for help on using the changeset viewer.