None of the calls below are thread-safe. We only expect one call of it in the entire system upon startup.
| 142 | /// None of the calls below are thread-safe. We only expect one call of it in |
| 143 | /// the entire system upon startup. |
| 144 | void registerVectorSerde(std::unique_ptr<VectorSerde> serdeToRegister) { |
| 145 | auto& serde = getVectorSerdeImpl(); |
| 146 | BOLT_CHECK_NULL(serde, "Vector serde is already registered."); |
| 147 | serde = std::move(serdeToRegister); |
| 148 | } |
| 149 | |
| 150 | void deregisterVectorSerde() { |
| 151 | getVectorSerdeImpl().reset(); |
no outgoing calls