Commit 391c4483 authored by Marcus Comstedt's avatar Marcus Comstedt

Web.Api: Remove dependency on this_thread when no threads

parent 6aa27037
......@@ -67,7 +67,11 @@ protected mapping(string:string) default_headers = ([
protected int _call_id = 0;
#if constant(this_thread)
#define IS_BACKEND_THREAD() (this_thread() == master()->backend_thread())
#else
#define IS_BACKEND_THREAD() (1)
#endif
//! Creates a new Api instance
//!
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment