-
Notifications
You must be signed in to change notification settings - Fork 231
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
Replace atomic_ops with std::atomic #3082
Commits on Jan 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 14847b3 - Browse repository at this point
Copy the full SHA 14847b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ec430f - Browse repository at this point
Copy the full SHA 7ec430fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c96438 - Browse repository at this point
Copy the full SHA 6c96438View commit details -
Switch from AO_t -> atomic_int in atomic.d
No longer need to include atomic_ops.h
Configuration menu - View commit details
-
Copy full SHA for 0dbab0b - Browse repository at this point
Copy the full SHA 0dbab0bView commit details -
Explicitly include assert header
Previously, it was included via atomic_ops.h.
Configuration menu - View commit details
-
Copy full SHA for 904f072 - Browse repository at this point
Copy the full SHA 904f072View commit details -
Move definition of atomic_field struct to its own header
Used in both d and system directories
Configuration menu - View commit details
-
Copy full SHA for 45a484e - Browse repository at this point
Copy the full SHA 45a484eView commit details -
Replace atomic_ops with std::atomic in supervisor directory
We also include atomic-exports.h instead of copy/pasting its contents.
Configuration menu - View commit details
-
Copy full SHA for 7c8ceb0 - Browse repository at this point
Copy the full SHA 7c8ceb0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d97083 - Browse repository at this point
Copy the full SHA 1d97083View commit details -
Configuration menu - View commit details
-
Copy full SHA for e97138f - Browse repository at this point
Copy the full SHA e97138fView commit details -
Configuration menu - View commit details
-
Copy full SHA for c181c6f - Browse repository at this point
Copy the full SHA c181c6fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c4bdea - Browse repository at this point
Copy the full SHA 6c4bdeaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 293d9a9 - Browse repository at this point
Copy the full SHA 293d9a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 88616db - Browse repository at this point
Copy the full SHA 88616dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2bd80dc - Browse repository at this point
Copy the full SHA 2bd80dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 65b4a0c - Browse repository at this point
Copy the full SHA 65b4a0cView commit details -
Don't cast to atomic_int in test(atomicField)
"load" returns an int anyway, and this was causing a fatal error on macOS: CC interrupts-tmp.c ../../../../Macaulay2/d/interrupts.d:25:100: fatal error: used type 'atomic_int' (aka '_Atomic(int)') where arithmetic or pointer type is required tmp__5 = (load_Field((*((struct atomic_field*)TS_Get_Local(interrupts_interruptedFlag_id)))) != ((atomic_int)0)); ^ ~
Configuration menu - View commit details
-
Copy full SHA for 8228ef5 - Browse repository at this point
Copy the full SHA 8228ef5View commit details -
Refactor store() for atomicField/atomicFieldPointer to take an int
Otherwise, we get compile errors using clang, e.g.: CC interrupts-tmp.c ../../../../Macaulay2/d/interrupts.d:25:85: fatal error: used type 'atomic_int' (aka '_Atomic(int)') where arithmetic or pointer type is required store_Field((*((struct atomic_field*)TS_Get_Local(interrupts_exceptionFlag_id))),((atomic_int)tmp__4)); ^ ~~~~~~ ../../../../Macaulay2/d/../../include/M2/atomic-field.h:20:52: note: expanded from macro 'store_Field' #define store_Field(x,val) atomic_store(&(x).field,val) ^~~ /Applications/Xcode_14.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.0/include/stdatomic.h:121:66: note: expanded from macro 'atomic_store' #define atomic_store(object, desired) __c11_atomic_store(object, desired, __ATOMIC_SEQ_CST) ^~~~~~~
Configuration menu - View commit details
-
Copy full SHA for 0b7fbc6 - Browse repository at this point
Copy the full SHA 0b7fbc6View commit details -
There were lots of things we were never actually using
Configuration menu - View commit details
-
Copy full SHA for cb26506 - Browse repository at this point
Copy the full SHA cb26506View commit details