I'm not sure, but maybe this helps a little: let mainThread = getThreadId() proc isMainThread(): bool = getThreadId() == mainThread Run
- Is it possible to detect context in relation to a threadvar? JohnAD
- Re: Is it possible to detect context in relation to a threadva... Araq