Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for runqempty (0.36 sec)

  1. src/runtime/export_test.go

    	for i := 0; i < iters; i++ {
    		*ready = 0
    		next0 := (i & 1) == 0
    		next1 := (i & 2) == 0
    		runqput(p, &gs[0], next0)
    		go func() {
    			for atomic.Xadd(ready, 1); atomic.Load(ready) != 2; {
    			}
    			if runqempty(p) {
    				println("next:", next0, next1)
    				throw("queue is empty")
    			}
    			done <- true
    		}()
    		for atomic.Xadd(ready, 1); atomic.Load(ready) != 2; {
    		}
    		runqput(p, &gs[1], next1)
    		runqget(p)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
Back to top