Is there any way to check which thread a current routine is running under in a multithreaded program? I want to do a check like this:
assert(CurrentlyRunningThread <> application.MainThread);
for certain routines, which due to timing issues should always be called on their own threads and not the principal thread of the program, but I'm not sure if it's possible, and if so what the syntax for it is.
Mason
Bookmarks