mirror of
https://github.com/lzh-1625/go_process_manager.git
synced 2025-10-04 15:42:44 +08:00
1
This commit is contained in:
@@ -17,10 +17,15 @@ type waitCond struct {
|
||||
}
|
||||
|
||||
var (
|
||||
ProcessWaitCond = newWaitCond()
|
||||
TaskWaitCond = newWaitCond()
|
||||
ProcessWaitCond *waitCond
|
||||
TaskWaitCond *waitCond
|
||||
)
|
||||
|
||||
func InitWaitCond() {
|
||||
ProcessWaitCond = newWaitCond()
|
||||
TaskWaitCond = newWaitCond()
|
||||
}
|
||||
|
||||
func newWaitCond() *waitCond {
|
||||
wc := &waitCond{
|
||||
cond: *sync.NewCond(&sync.Mutex{}),
|
||||
|
Reference in New Issue
Block a user