Commit c270a430 authored by Francis Dupont's avatar Francis Dupont
Browse files

[4065] untabify

parent 720abaa7
......@@ -42,14 +42,14 @@ class Blocker : boost::noncopyable {
public:
// Constructor blocks all signals
Blocker() {
sigset_t new_mask;
sigfillset(&new_mask);
pthread_sigmask(SIG_BLOCK, &new_mask, &old_mask_);
sigset_t new_mask;
sigfillset(&new_mask);
pthread_sigmask(SIG_BLOCK, &new_mask, &old_mask_);
}
// Destructor restores the previous signal mask
~Blocker() {
pthread_sigmask(SIG_SETMASK, &old_mask_, 0);
pthread_sigmask(SIG_SETMASK, &old_mask_, 0);
}
private:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment