-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
regex-morph.c: Add alloc_key() under #if HAVE_THREADS_H #1505
Conversation
Thank you, it does compile on macOS with pcre2 with that change, however in
while multi-thread crashed here:
#1495 should be mentioned in the commit message. |
The current regex-morph.c PCRE2 code doesn't support using multi-threading without Possible solutions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I agree this change is correct since alloc_key
is only used in other code that is already bracketed by the #if HAVE_THREADS_H && !__EMSCRIPTEN__
condition:
link-grammar/link-grammar/dict-common/regex-morph.c
Lines 183 to 184 in 4102946
#if HAVE_THREADS_H && !__EMSCRIPTEN__ | |
call_once(&call_once_flag, alloc_key); |
I can file a separate bug report about the crash later.
See PR #1504.
This PR solves the rest of the errors that appear when configuring with `CPPFLAGS="-DHAVE_THREADS_H=0".