Prepares worker thread and runs routine.
| 18 | { |
| 19 | /// Prepares worker thread and runs routine. |
| 20 | void RunRoutine(std::shared_ptr<IRoutine> routine) |
| 21 | { |
| 22 | #if defined(OMIM_OS_ANDROID) |
| 23 | AndroidThreadAttachToJVM(); |
| 24 | #endif // defined(OMIM_OS_ANDROID) |
| 25 | |
| 26 | routine->Do(); |
| 27 | |
| 28 | #if defined(OMIM_OS_ANDROID) |
| 29 | AndroidThreadDetachFromJVM(); |
| 30 | #endif // defined(OMIM_OS_ANDROID) |
| 31 | } |
| 32 | } // namespace |
| 33 | |
| 34 | ///////////////////////////////////////////////////////////////////// |
nothing calls this directly
no test coverage detected