| 132 | |
| 133 | |
| 134 | void Runtime::RuntimeProcess::finalize() |
| 135 | { |
| 136 | CHECK(terminating) << "Runtime has not yet been terminated"; |
| 137 | |
| 138 | // NOTE: This is a blocking call. However, the thread is guaranteed |
| 139 | // to be exiting, therefore the amount of blocking time should be |
| 140 | // short (just like other syscalls we invoke). |
| 141 | looper->join(); |
| 142 | looper.reset(); |
| 143 | terminated.set(Nothing()); |
| 144 | } |
| 145 | |
| 146 | |
| 147 | void Runtime::RuntimeProcess::loop() |