Page 1 of 1

Is CAN_Initialize thread safe?

Posted: Thu 14. Jan 2016, 09:18
by tr.gt
Hey,

I'm currently have problems with CAN_Initialize calling from another thread.

I wrapped the PCAN Basic function in my own class and call CAN_Initialize in the constructor.

If create the class in my main thread everything works fine. If I start another thread to create a instance the thread exists at CAN_Initialize.

Do I need to regard something for threading?

Thanks,
Tobias

Re: Is CAN_Initialize thread safe?

Posted: Thu 14. Jan 2016, 09:38
by K.Wagner
Hello,

yes, all PCAN-Basic functions are indeed thread safe. Please check if members of your class that are possibly being used at initialize time are thread safe as well.