Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for wantAsyncPreempt (0.28 sec)

  1. src/runtime/preempt.go

    		// new context for the P.
    		print("runtime: asyncPreemptStack=", asyncPreemptStack, "\n")
    		throw("async stack too large")
    	}
    }
    
    // wantAsyncPreempt returns whether an asynchronous preemption is
    // queued for gp.
    func wantAsyncPreempt(gp *g) bool {
    	// Check both the G and the P.
    	return (gp.preempt || gp.m.p != 0 && gp.m.p.ptr().preempt) && readgstatus(gp)&^_Gscan == _Grunning
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 15.1K bytes
    - Viewed (0)
Back to top