Changeset b3ed43a3 for libcfa/src
- Timestamp:
- Nov 25, 2020, 12:25:06 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 6f1e695
- Parents:
- 04994aa (diff), 5e82d56 (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:
- libcfa/src
- Files:
-
- 7 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel.cfa
r04994aa rb3ed43a3 379 379 380 380 ready_schedule_lock(); 381 push( thrd->curr_cluster, thrd ); 382 __wake_one(thrd->curr_cluster); 381 // Dereference the thread now because once we push it, there is not guaranteed it's still valid. 382 struct cluster * cl = thrd->curr_cluster; 383 384 // push the thread to the cluster ready-queue 385 push( cl, thrd ); 386 387 // variable thrd is no longer safe to use 388 389 // wake the cluster using the save variable. 390 __wake_one( cl ); 383 391 ready_schedule_unlock(); 384 392
Note:
See TracChangeset
for help on using the changeset viewer.