This commit is contained in:
evilsocket 2018-01-16 10:32:09 +01:00
commit 9363649bce
2 changed files with 10 additions and 0 deletions

View file

@ -151,6 +151,14 @@ func (q *Queue) Send(raw []byte) error {
}
}
func (q *Queue) Lock() {
q.lock.Lock()
}
func (q *Queue) Unlock() {
q.lock.Unlock()
}
func (q *Queue) Stop() {
q.lock.Lock()
defer q.lock.Unlock()