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
{{ message }}
This repository has been archived by the owner on May 24, 2022. It is now read-only.
It seems like shctx.c is written with several inline assembler parts to get atomic operations. GCC has a relatively rich set1 of these; possibly not everything that the file needs, but at least the cmpxchg() function could probably be replaced by __sync_val_compare_and_swap().
The text was updated successfully, but these errors were encountered:
__sync_val_compare_and_swap gcc builtin appear in gcc v4.1.* . My embedded solution product, as a lot of embedded solutions, use a gcc v3 based toolchain.
If the assembled code is a problem, pthread_mutex usage is more portable.
It seems like shctx.c is written with several inline assembler parts to get atomic operations. GCC has a relatively rich set1 of these; possibly not everything that the file needs, but at least the cmpxchg() function could probably be replaced by __sync_val_compare_and_swap().
The text was updated successfully, but these errors were encountered: