File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ BoostVM::BoostVM(BoostEnvironment& environment,
50
50
uuidGenerator (),
51
51
portClosed (false ),
52
52
_asyncIONodeCount (0 ),
53
- preemptionTimer (nullptr ),
53
+ preemptionTimer (new boost::asio::deadline_timer(environment.io_service) ),
54
54
alarmTimer (environment.io_service),
55
55
_terminationRequested (false ),
56
56
_terminationStatus (0 ),
@@ -103,10 +103,6 @@ void BoostVM::run() {
103
103
constexpr auto recInvokeAgainNow = VirtualMachine::recInvokeAgainNow;
104
104
constexpr auto recInvokeAgainLater = VirtualMachine::recInvokeAgainLater;
105
105
106
- env.io_service .post ([&] {
107
- preemptionTimer = new boost::asio::deadline_timer (env.io_service );
108
- });
109
-
110
106
// The main loop that handles all interactions with the VM
111
107
while (true ) {
112
108
// Make sure the VM knows the reference time before starting
You can’t perform that action at this time.
0 commit comments