hphp/runtime/ext/asio/static_wait_handle.cpp
/**
 * Create succeeded StaticWaitHandle object.
 *
 * - consumes reference of the given cell
 * - produces reference for the returned StaticWaitHandle object
 */
Create succeeded StaticWaitHandle object.
- consumes reference of the given cell
- produces reference for the returned StaticWaitHandle object
Create succeeded StaticWaitHandle object . - consumes reference of the given cell - produces reference for the returned StaticWaitHandle object
c_StaticWaitHandle* c_StaticWaitHandle::CreateSucceeded(const Cell& result) {
  auto waitHandle = newobj<c_StaticWaitHandle>();
  waitHandle->setState(STATE_SUCCEEDED);
  waitHandle->incRefCount();
  cellCopy(result, waitHandle->m_resultOrException);
  return waitHandle;
}
c_StaticWaitHandle * c_StaticWaitHandle :: CreateSucceeded ( const Cell & result ) { auto waitHandle = newobj < c_StaticWaitHandle > ( ) ; waitHandle -> setState ( STATE_SUCCEEDED ) ; waitHandle -> incRefCount ( ) ; cellCopy ( result , waitHandle -> m_resultOrException ) ; return waitHandle ; }
Create succeeded StaticWaitHandle object.
Create succeeded StaticWaitHandle object .