On Wednesday 04 June 2008 08:37:08 Michael Gogins wrote: > That is what it is supposed to do. > > I had to change the Csound threading API because on Windows, pthread_t is a > struct but we have defined the API as returning a pointer. > > I suppose pthread_t pthread could be static pthread_t pthread, but > otherwise please do not change this unless you can come up with a solution > that will work on Windows as well as on the other platforms. Perhaps do as in CreateThread and malloc it? Then document that the user must free the pointer. Presumably, the only use of csoundGetCurrentThreadId is to pass it to csoundJoinThread, so perhaps it could free it? -- Felipe Sateler