Impl threaded init/update

This commit is contained in:
Stephen Seo 2019-09-16 11:40:43 +09:00
parent 255930db9a
commit e320a6343e
2 changed files with 615 additions and 586 deletions

View file

@ -224,6 +224,8 @@ private:
} // }}}
public:
void update_impl();
uint_fast32_t _contextIdentifier;
char recvBuf[UDPC_PACKET_MAX_SIZE];
@ -252,6 +254,9 @@ public:
std::default_random_engine rng_engine;
std::thread thread;
std::atomic_bool threadRunning;
}; // struct Context
Context *verifyContext(UDPC_HContext ctx);
@ -278,6 +283,8 @@ float timePointsToFSec(
UDPC_PacketInfo get_empty_pinfo();
void threadedUpdate(Context *ctx);
} // namespace UDPC
bool operator ==(const UDPC_ConnectionId& a, const UDPC_ConnectionId& b);

File diff suppressed because it is too large Load diff