Distinguish global and thread-local variables