|
@@ -241,7 +241,7 @@ typedef std::shared_ptr<EventLoop> EventLoopPtr;
|
|
|
static inline EventLoop* tlsEventLoop() {
|
|
static inline EventLoop* tlsEventLoop() {
|
|
|
return (EventLoop*)ThreadLocalStorage::get(ThreadLocalStorage::EVENT_LOOP);
|
|
return (EventLoop*)ThreadLocalStorage::get(ThreadLocalStorage::EVENT_LOOP);
|
|
|
}
|
|
}
|
|
|
-#define currentThreadEventLoop tlsEventLoop()
|
|
|
|
|
|
|
+#define currentThreadEventLoop ::hv::tlsEventLoop()
|
|
|
|
|
|
|
|
static inline TimerID setTimer(int timeout_ms, TimerCallback cb, uint32_t repeat = INFINITE) {
|
|
static inline TimerID setTimer(int timeout_ms, TimerCallback cb, uint32_t repeat = INFINITE) {
|
|
|
EventLoop* loop = tlsEventLoop();
|
|
EventLoop* loop = tlsEventLoop();
|