HaxeFoundation / HaxeFoundation/hxcpp

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

Open
#1,136 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
330
Forks
227
Avg merge
2d 16h
Merged PRs (30d)
18

Description

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`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.