mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-15 08:16:43 +00:00
update
This commit is contained in:
@@ -344,11 +344,10 @@ func (pool *ResourcePool) list() MsgResource {
|
||||
start := pool.pools[0].Next
|
||||
for cur := start; ; {
|
||||
cur.Lock.Lock()
|
||||
cur.Lock.Unlock()
|
||||
|
||||
for k, node := range cur.Nodes {
|
||||
nodes[k] = *node
|
||||
}
|
||||
cur.Lock.Unlock()
|
||||
cur = cur.Next
|
||||
if cur == start {
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user