| 599 | |
| 600 | |
| 601 | void unsetCallbacks() |
| 602 | { |
| 603 | synchronized (authorization_callbacks_mutex) { |
| 604 | if (authorization_callbacks.load() != nullptr) { |
| 605 | delete authorization_callbacks.load(); |
| 606 | } |
| 607 | |
| 608 | authorization_callbacks.store(nullptr); |
| 609 | } |
| 610 | } |
| 611 | |
| 612 | } // namespace authorization { |
| 613 |