LeviLamina
Loading...
Searching...
No Matches
RtcThreadManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
8namespace rtc { class SocketServer; }
9namespace rtc { class Thread; }
10// clang-format on
11
12namespace NetherNet {
13
14class RtcThreadManager {
15public:
16 // member variables
17 // NOLINTBEGIN
20 // NOLINTEND
21
22public:
23 // prevent constructor by default
24 RtcThreadManager& operator=(RtcThreadManager const&);
25 RtcThreadManager(RtcThreadManager const&);
26 RtcThreadManager();
27
28public:
29 // member functions
30 // NOLINTBEGIN
31 MCNAPI ::rtc::Thread* GetRtcThread() const;
32
33 MCNAPI void Initialize(
34 char const* threadName,
35 ::ThreadConfiguration const& threadConfiguration,
36 ::std::unique_ptr<::rtc::SocketServer>&& socketServer
37 );
38
39 MCNAPI void SetRtcThread(::std::shared_ptr<::rtc::Thread> rtcThread);
40
41 MCNAPI void Shutdown();
42 // NOLINTEND
43};
44
45} // namespace NetherNet
MCAPI::rtc::Thread * GetRtcThread() const
MCAPI void SetRtcThread(::std::shared_ptr<::rtc::Thread > rtcThread)
MCAPI void Initialize(char const *threadName, ::ThreadConfiguration const &threadConfiguration, ::std::unique_ptr<::rtc::SocketServer > &&socketServer)
Definition SocketServer.h:16
Definition Thread.h:20
Definition ThreadConfiguration.h:5
Definition Alias.h:14