I was looking for a way where I could halt program execution if a motif
call ( or x call for that matter ) is not being done from the main
thread of a program. Anybody know a way to do this.

I have put a check in some of the common C functions that I used that
call into motif but wondering if there is a better way.