1
0
Fork 0
This commit is contained in:
bluejay-sh 2025-02-28 01:36:02 +01:00 committed by GitHub
commit e326e0012d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -40,6 +40,12 @@
#define MAIN_THREAD_SYNC_CHECK
#endif
// Macros for wrapping multithreaded server calls.
// - FUNC{n} is a straightforward call with no return type that takes n arguments.
// - FUNC{n}R is a call to a method with a return type.
// - FUNC{n}S is a call to a method that requires synchronization with the main thread.
// - FUNC{n}C is const, indicating that the method does not mutate internal server state.
#define FUNC0R(m_r, m_type) \
virtual m_r m_type() override { \
if (Thread::get_caller_id() != server_thread) { \