| 175 | { |
| 176 | |
| 177 | void requireMainThread(const char* api) |
| 178 | { |
| 179 | if (App::MainThreadSignalConfig::isMainThread()) { |
| 180 | return; |
| 181 | } |
| 182 | |
| 183 | Base::Console().error("GUI API '%s' may only be used from the main thread.\n", api); |
| 184 | throw Base::RuntimeError( |
| 185 | std::string("GUI API '") + api + "' may only be used from the main thread" |
| 186 | ); |
| 187 | } |
| 188 | |
| 189 | class ViewProviderMap |
| 190 | { |
no test coverage detected