You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FreeBSD does not have an equivalent to the PTHREAD_RECURSIVE_MUTEX_INITIALIZER macro. It's my (extremely limited and possibly incorrect) understanding that this macro is used for statically allocated mutexes that could be accessed before pthread_mutex_init() would have a chance to be called on them. sentry_sync.h handles this for musl libc and AIX by defining SENTRY__MUTEX_INIT as a literal value, but this approach can't work for FreeBSD because FreeBSD libc defines pthread_mutex_t as struct pthread_mutex*. Since it's a pointer, I don't see how a literal value can be useful here. What is a sane way to proceed?
sentry-native is a dependency of another project I am looking to add FreeBSD support to, so I'm not very familiar with Sentry itself. Thank you for your patience.
The text was updated successfully, but these errors were encountered:
FreeBSD does not have an equivalent to the
PTHREAD_RECURSIVE_MUTEX_INITIALIZER
macro. It's my (extremely limited and possibly incorrect) understanding that this macro is used for statically allocated mutexes that could be accessed beforepthread_mutex_init()
would have a chance to be called on them.sentry_sync.h
handles this for musl libc and AIX by definingSENTRY__MUTEX_INIT
as a literal value, but this approach can't work for FreeBSD because FreeBSD libc definespthread_mutex_t
asstruct pthread_mutex*
. Since it's a pointer, I don't see how a literal value can be useful here. What is a sane way to proceed?sentry-native
is a dependency of another project I am looking to add FreeBSD support to, so I'm not very familiar with Sentry itself. Thank you for your patience.The text was updated successfully, but these errors were encountered: