• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/llvm-project/openmp/runtime/src/

Lines Matching defs:flag

1449    sleep bit for the indicated flag variable to true. */
1451 static inline void __kmp_suspend_template(int th_gtid, C *flag) {
1457 KF_TRACE(30, ("__kmp_suspend_template: T#%d enter for flag = %p\n", th_gtid,
1458 flag->get()));
1466 th_gtid, flag->get()));
1470 old_spin = flag->set_sleeping();
1473 flag->unset_sleeping();
1480 th_gtid, flag->get(), flag->load(), old_spin));
1482 if (flag->done_check_val(old_spin)) {
1483 old_spin = flag->unset_sleeping();
1486 th_gtid, flag->get()));
1492 TCW_PTR(th->th.th_sleep_loc, (void *)flag);
1494 while (flag->is_sleeping()) {
1545 if (flag->is_sleeping()) {
1553 } else if (flag->is_sleeping()) {
1583 void __kmp_suspend_32(int th_gtid, kmp_flag_32 *flag) {
1584 __kmp_suspend_template(th_gtid, flag);
1586 void __kmp_suspend_64(int th_gtid, kmp_flag_64 *flag) {
1587 __kmp_suspend_template(th_gtid, flag);
1589 void __kmp_suspend_oncore(int th_gtid, kmp_flag_oncore *flag) {
1590 __kmp_suspend_template(th_gtid, flag);
1594 after setting the sleep bit indicated by the flag argument to FALSE.
1597 static inline void __kmp_resume_template(int target_gtid, C *flag) {
1615 if (!flag) { // coming from __kmp_null_resume_wrapper
1616 flag = (C *)CCAST(void *, th->th.th_sleep_loc);
1619 // First, check if the flag is null or its type has changed. If so, someone
1621 if (!flag || flag->get_type() != flag->get_ptr_type()) { // get_ptr_type
1623 // flag was cast to
1625 "awake: flag(%p)\n",
1630 } else { // if multiple threads are sleeping, flag should be internally
1632 typename C::flag_t old_spin = flag->unset_sleeping();
1633 if (!flag->is_sleeping_val(old_spin)) {
1635 "awake: flag(%p): "
1637 gtid, target_gtid, flag->get(), old_spin, flag->load()));
1643 "sleep bit for flag's loc(%p): "
1645 gtid, target_gtid, flag->get(), old_spin, flag->load()));
1666 void __kmp_resume_32(int target_gtid, kmp_flag_32 *flag) {
1667 __kmp_resume_template(target_gtid, flag);
1669 void __kmp_resume_64(int target_gtid, kmp_flag_64 *flag) {
1670 __kmp_resume_template(target_gtid, flag);
1672 void __kmp_resume_oncore(int target_gtid, kmp_flag_oncore *flag) {
1673 __kmp_resume_template(target_gtid, flag);