| 616 | inline bool valid() const { return producer != nullptr; } |
| 617 | |
| 618 | ~ProducerToken() |
| 619 | { |
| 620 | if (producer != nullptr) { |
| 621 | producer->token = nullptr; |
| 622 | producer->inactive.store(true, std::memory_order_release); |
| 623 | } |
| 624 | } |
| 625 | |
| 626 | // Disable copying and assignment |
| 627 | ProducerToken(ProducerToken const&) MOODYCAMEL_DELETE_FUNCTION; |
nothing calls this directly
no outgoing calls
no test coverage detected