aboutsummaryrefslogtreecommitdiff
path: root/src/server.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/server.h')
-rw-r--r--src/server.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server.h b/src/server.h
index 26ec3ab73..fa732010a 100644
--- a/src/server.h
+++ b/src/server.h
@@ -220,8 +220,10 @@ public:
void Send(NetworkPacket* pkt);
- // Environment must be locked when called
+ // Both setter and getter need no envlock,
+ // can be called freely from threads
void setTimeOfDay(u32 time);
+ inline u32 getTimeOfDay();
/*
Shall be called with the environment locked.