mirror of
https://github.com/mii443/libdatachannel.git
synced 2025-08-22 23:25:33 +00:00
Added optional preloading
This commit is contained in:
@ -31,6 +31,7 @@ using init_token = std::shared_ptr<Init>;
|
||||
class Init {
|
||||
public:
|
||||
static init_token Token();
|
||||
static void Preload();
|
||||
static void Cleanup();
|
||||
|
||||
~Init();
|
||||
@ -43,6 +44,7 @@ private:
|
||||
static std::mutex Mutex;
|
||||
};
|
||||
|
||||
inline void Preload() { Init::Preload(); }
|
||||
inline void Cleanup() { Init::Cleanup(); }
|
||||
|
||||
} // namespace rtc
|
||||
|
Reference in New Issue
Block a user