Update
This commit is contained in:
1 parent
3530afb854
commit
6903fcff27
2146 files changed
+112256
-190703
No files matched your search
+10
-1
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// Copyright (c) Tailscale Inc & contributors
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
package eventbus
|
||||
@@ -103,6 +103,15 @@ func (b *Bus) Debugger() *Debugger {
|
||||
return &Debugger{b}
|
||||
}
|
||||
|
||||
// ProbeLocks acquires and releases the bus's internal mutexes.
|
||||
func (b *Bus) ProbeLocks() {
|
||||
b.topicsMu.Lock()
|
||||
b.topicsMu.Unlock()
|
||||
|
||||
b.clientsMu.Lock()
|
||||
b.clientsMu.Unlock()
|
||||
}
|
||||
|
||||
// Close closes the bus. It implicitly closes all clients, publishers and
|
||||
// subscribers attached to the bus.
|
||||
//
|
||||
|
||||
Reference in new issue
Block a user