runtime/realm/tasks.cc
// attempts to add another task to the this deferred spawn group -
// returns true on success, or false if the event has already
//  triggered, in which case 'poisoned' is set appropriately
attempts to add another task to the this deferred spawn group
returns true on success, or false if the event has already
triggered, in which case 'poisoned' is set appropriately
attempts to add another task to the this deferred spawn group returns true on success or false if the event has already triggered in which case ' poisoned ' is set appropriately
bool Task::DeferredSpawn::add_task(Task *to_add, bool& poisoned)
  {
    assert(to_add->before_event == wait_on);
    bool ok;
    {
      AutoLock<> al(pending_list_mutex);
      if(is_triggered) {
	ok = false;
	poisoned = is_poisoned;
      } else {
	ok = true;
	pending_list.push_back(to_add);
      }
    }
    return ok;
  }
bool Task :: DeferredSpawn :: add_task ( Task * to_add , bool & poisoned ) { assert ( to_add -> before_event == wait_on ) ; bool ok ; { AutoLock < > al ( pending_list_mutex ) ; if ( is_triggered ) { ok = false ; poisoned = is_poisoned ; } else { ok = true ; pending_list . push_back ( to_add ) ; } } return ok ; }
attempts to add another task to the this deferred spawn group
returns true on success, or false if the event has already
triggered, in which case 'poisoned' is set appropriately
attempts to add another task to the this deferred spawn group returns true on success or false if the event has already triggered in which case ' poisoned ' is set appropriately