hphp/runtime/ext/asio/static_wait_handle.cpp
/**
 * Create failed StaticWaitHandle object.
 *
 * - consumes reference of the given Exception object
 * - produces reference for the returned StaticWaitHandle object
 */
Create failed StaticWaitHandle object.
- consumes reference of the given Exception object
- produces reference for the returned StaticWaitHandle object
Create failed StaticWaitHandle object . - consumes reference of the given Exception object - produces reference for the returned StaticWaitHandle object
c_StaticWaitHandle* c_StaticWaitHandle::CreateFailed(ObjectData* exception) {
  assert(exception);
  assert(exception->instanceof(SystemLib::s_ExceptionClass));
  auto waitHandle = newobj<c_StaticWaitHandle>();
  waitHandle->setState(STATE_FAILED);
  waitHandle->incRefCount();
  cellCopy(make_tv<KindOfObject>(exception), waitHandle->m_resultOrException);
  return waitHandle;
}
c_StaticWaitHandle * c_StaticWaitHandle :: CreateFailed ( ObjectData * exception ) { assert ( exception ) ; assert ( exception -> instanceof ( SystemLib :: s_ExceptionClass ) ) ; auto waitHandle = newobj < c_StaticWaitHandle > ( ) ; waitHandle -> setState ( STATE_FAILED ) ; waitHandle -> incRefCount ( ) ; cellCopy ( make_tv < KindOfObject > ( exception ) , waitHandle -> m_resultOrException ) ; return waitHandle ; }
Create failed StaticWaitHandle object.
Create failed StaticWaitHandle object .