You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2021/03/09 16:25:00 UTC

[jira] [Created] (ARROW-11916) [C++] Investigate signal-safe spin lock

Antoine Pitrou created ARROW-11916:
--------------------------------------

             Summary: [C++] Investigate signal-safe spin lock
                 Key: ARROW-11916
                 URL: https://issues.apache.org/jira/browse/ARROW-11916
             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)