Committed jpff's suggestion for csoundGetCurrentThreadId. The user must free the returned pointer, and compare the returned pointers by value, not by address.
Committed jpff's suggestion for csoundGetCurrentThreadId. The user must free the returned pointer, and compare the returned pointers by value, not by address.

ketchupok/csound,csound/csound,ketchupok/csound,csound/csound,csound/csound,ketchupok/csound,ketchupok/csound,ketchupok/csound,csound/csound,ketchupok/csound,csound/csound,ketchupok/csound,csound/csound,csound/csound,ketchupok/csound,ketchupok/csound,ketchupok/csound,csound/csound,csound/csound,csound/csound