Antoine Pitrou created ARROW-11917:
--------------------------------------
Summary: [C++] Investigate signal-safe spin lock
Key: ARROW-11917
URL: https://issues.apache.org/jira/browse/ARROW-11917
Project: Apache Arrow
Issue Type: Task
Components: C++
Reporter: Antoine Pitrou
Assignee: Antoine Pitrou
Abseil claims to have a async-signal-safe spinlock class:
https://github.com/abseil/abseil-cpp/blob/master/absl/base/internal/spinlock.h
This could be used to implement rudimentary mutual exclusion between a signal
handler and regular code that sets up or tears down shared resources used by
the handler.
The caveat is that signals need (apparently) to be blocked inside the handler
before taking the spinlock.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)