timer(const timer& aOther) : iOwnerThread(aOther.iOwnerThread), iTimerObject(aOther.iOwnerThread.io_service()), iDuration_ms(aOther.iDuration_ms), iWaiting(false), iCancelling(false) { if (aOther.waiting()) again(); }
timer::timer(const timer& aOther) : iIoTask(aOther.iIoTask), iHandlerProxy(new handler_proxy(*this)), iTimerObject(aOther.iIoTask.timer_io_service().native_object()), iDuration_ms(aOther.iDuration_ms), iEnabled(aOther.iEnabled), iWaiting(false), iInReady(false) { if (aOther.waiting()) again(); }