Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for InitializeCriticalSection (0.55 sec)

  1. src/runtime/cgo/gcc_libinit_windows.c

    _cgo_preinit_init() {
    	 runtime_init_wait = CreateEvent(NULL, TRUE, FALSE, NULL);
    	 if (runtime_init_wait == NULL) {
    		fprintf(stderr, "runtime: failed to create runtime initialization wait event.\n");
    		abort();
    	 }
    
    	 InitializeCriticalSection(&runtime_init_cs);
    }
    
    // Make sure that the preinit sequence has run.
    void
    _cgo_maybe_run_preinit() {
    	 if (!InterlockedExchangeAdd(&runtime_init_once_done, 0)) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 4.2K bytes
    - Viewed (0)
Back to top