LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

custom thread pool function return values?

Is it not possible to return custom values from a thread pool function?  

 

I'm using CmtGetThreadPoolFunctionAttribute to get the thread pool function return value, but it seems to only send me 0 (pass) and -1 (fail).  My thread function though can return several custom integer value codes depending on what exactly failed.

 

Is there a way?

0 Kudos
Message 1 of 2
(653 Views)

Argh.  Disregard.  This isn't true.  I had a bug in my test code.  The thread pool function will indeed return any value you want it to into the ATTR_TP_FUNCTION_RETURN_VALUE attribute.  That's super helpful for parsing failure codes!

0 Kudos
Message 2 of 2
(650 Views)