Actually, if you have CVI 8.0 or higher then this code is thread-safe. The comments are obsolete and should (will) be removed in the next release. You can verify if the code was made thread safe by looking at regexpr.c - you should see calls to GetLock, etc.