Identify Xojo threads?

is there a way to know if a thread is a Xojo thread?

e.g. does Xojo have a per thread variable to keep reference to some variables?
So we could check if that per thread variable is non nil to identify a Xojo thread?

We want to know whether it’s safe to raise event without stack overflow exception error.

@William Yu or @Joe Ranieri, you know?