posix_sigmask.cpp 498 B

1234567891011121314151617181920
  1. //
  2. // $Id$
  3. //
  4. #include<__vic/posix/thread.h>
  5. #include<__vic/throw_errno.h>
  6. #include<signal.h>
  7. namespace __vic { namespace posix {
  8. //----------------------------------------------------------------------------
  9. void this_thread::change_sigmask(int how, const sigset_t &mask, sigset_t *oldmask)
  10. {
  11. int err = ::pthread_sigmask(how, &mask, oldmask);
  12. if(err) throw_errno("pthread_sigmask", err);
  13. }
  14. //----------------------------------------------------------------------------
  15. }} // namespace