[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #61370] gcc's thread sanitizer reports several
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #61370] gcc's thread sanitizer reports several race conditions |
Date: |
Mon, 25 Oct 2021 16:01:34 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 |
Follow-up Comment #5, bug #61370 (project octave):
Most of this proposed change seems OK to me except I find the declaration
std::atomic<sig_atomic_t> octave_interrupt_state;
to be a bit strange since I thought sig_atomic_t was already supposed to be an
atomic type.
More importantly, the proposed change moves the octave_interrupt_state
variable inside an #if defined (__cplusplus) / #endif block so that it is no
longer declared for C programs. The original intent was to allow quit.h to be
included in C or C++ source files and for some of the symbols it declares to
be available in C source files. I'm not sure how important this feature
really is, but is it necessary to prevent octave_interrupt_state from being
available in C source files?
If we do decide that octave_interrupt_state only needs to be available in C++
source files, then I think we can just declare it as std::atomic<int> instead
of std::atomic<sig_atomic_t>.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61370>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #61370] gcc's thread sanitizer reports several race conditions, anonymous, 2021/10/23
- [Octave-bug-tracker] [bug #61370] gcc's thread sanitizer reports several race conditions, Kai Torben Ohlhus, 2021/10/24
- [Octave-bug-tracker] [bug #61370] gcc's thread sanitizer reports several race conditions, Kai Torben Ohlhus, 2021/10/24
- [Octave-bug-tracker] [bug #61370] gcc's thread sanitizer reports several race conditions, anonymous, 2021/10/24
- [Octave-bug-tracker] [bug #61370] gcc's thread sanitizer reports several race conditions, Kai Torben Ohlhus, 2021/10/25
- [Octave-bug-tracker] [bug #61370] gcc's thread sanitizer reports several race conditions, anonymous, 2021/10/25
- [Octave-bug-tracker] [bug #61370] gcc's thread sanitizer reports several race conditions,
John W. Eaton <=
- [Octave-bug-tracker] [bug #61370] gcc's thread sanitizer reports several race conditions, Kai Torben Ohlhus, 2021/10/25
- [Octave-bug-tracker] [bug #61370] gcc's thread sanitizer reports several race conditions, anonymous, 2021/10/26
- [Octave-bug-tracker] [bug #61370] gcc's thread sanitizer reports several race conditions, anonymous, 2021/10/26