public Mailbox(String name) { m_cpipe = new YPipe<Command>(Config.CommandPipeGranularity, "mailbox"); m_sync = new object(); m_signaler = new Signaler(); // Get the pipe into passive state. That way, if the users starts by // polling on the associated file descriptor it will get woken up when // new command is posted. Command cmd = m_cpipe.Read(); Debug.Assert(cmd == null); m_active = false; m_name = name; }
public Mailbox(String name) { m_cpipe = new YPipe <Command>(Config.CommandPipeGranularity, "mailbox"); m_sync = new object(); m_signaler = new Signaler(); // Get the pipe into passive state. That way, if the users starts by // polling on the associated file descriptor it will get woken up when // new command is posted. var cmd = new Command(); bool ok = m_cpipe.Read(ref cmd); Debug.Assert(!ok); m_active = false; m_name = name; }