Application context (long-lived)
| 558 | |
| 559 | // Application context (long-lived) |
| 560 | void ApplicationSceneContext::set(core::Scene* scene) { |
| 561 | scene_.store(scene); |
| 562 | mutation_flags_.store(0, std::memory_order_release); |
| 563 | const uint64_t generation = generation_.fetch_add(1, std::memory_order_acq_rel) + 1; |
| 564 | if (g_scene_generation_cb) |
| 565 | g_scene_generation_cb(generation); |
| 566 | } |
| 567 | |
| 568 | core::Scene* ApplicationSceneContext::get() const { return scene_.load(); } |
| 569 |
no test coverage detected