MCPcopy Create free account
hub / github.com/comaps/comaps / RunRoutine

Function RunRoutine

libs/base/thread.cpp:20–31  ·  view source on GitHub ↗

Prepares worker thread and runs routine.

Source from the content-addressed store, hash-verified

18{
19/// Prepares worker thread and runs routine.
20void 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/////////////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 3

AndroidThreadAttachToJVMFunction · 0.85
DoMethod · 0.45

Tested by

no test coverage detected