hxcpp icon indicating copy to clipboard operation
hxcpp copied to clipboard

bus error from unaligned access in threads on 64bit raspberry pi.

Open gepatto opened this issue 1 year ago • 0 comments

hxcpp Threads are causing bus errors an 64bit (os) RaspberryPi .

forcing HXCPP_ALIGN_ALLOC solves the problem.

quoting Hugh: the better way would be to replace the pthread_cond_init calls with a malloc + a pthread_cond_init call and the pthread_cond_destroy calls with a pthread_cond_destroy + free calls. Same for pthread_mutex_t. In Thread.h and Thread.cpp

gepatto avatar Jul 30 '24 08:07 gepatto