Mutex pipe_lock;
int state;
- atomic_t state_closed; // non-zero iff state = STATE_CLOSED
+ std::atomic<bool> state_closed = { false }; // true iff state = STATE_CLOSED
// session_security handles any signatures or encryptions required for this pipe's msgs. PLR