[pg basics] sig_atomic_t

How does sig_atomic_t actually work?

Key Takeways:

  • sig_atomic_t is not an atomic data type
  • used in the context of a signal handler
  • An integral type that can be modified atomically, without the
    possibility of a signal arriving in the middle of the operation.

posted on 2024-08-13 10:45  winter-loo  阅读(26)  评论(0)    收藏  举报

导航