Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
std::sig_atomic_t(3)	      C++ Standard Libary	  std::sig_atomic_t(3)

NAME
       std::sig_atomic_t - std::sig_atomic_t

Synopsis
	  Defined in header <csignal>
	  typedef /* unspecified */ sig_atomic_t;

	  An  integer  type  which can be accessed as an atomic	entity even in
       the presence of
	  asynchronous interrupts made by signals.

Notes
	  Until	 C++11,	 which	introduced  std::atomic	 and  std::atomic_sig-
       nal_fence, about	the
	  only	thing  a strictly conforming program could do in a signal han-
       dler was	to assign
	  a value to a volatile	static std::sig_atomic_t variable and promptly
       return.

See also
	  signal	      sets a signal handler for	particular signal
			      (function)
	  atomic_signal_fence fence between a thread and a signal handler exe-
       cuted in	the same
	  (C++11)	      thread
			      (function)

http://cppreference.com		  2022.07.31		  std::sig_atomic_t(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=std::sig_atomic_t&sektion=3&manpath=FreeBSD+Ports+15.0>

home | help