Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for setExited (0.12 sec)

  1. src/runtime/testdata/testprogcgo/lockosthread.go

    package main
    
    import (
    	"os"
    	"runtime"
    	"sync/atomic"
    	"time"
    	"unsafe"
    )
    
    /*
    #include <pthread.h>
    #include <stdint.h>
    
    extern uint32_t threadExited;
    
    void setExited(void *x);
    */
    import "C"
    
    var mainThread C.pthread_t
    
    func init() {
    	registerInit("LockOSThreadMain", func() {
    		// init is guaranteed to run on the main thread.
    		mainThread = C.pthread_self()
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 02 20:21:33 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. src/runtime/testdata/testprogcgo/lockosthread.c

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // +build !plan9,!windows
    
    #include <stdint.h>
    
    uint32_t threadExited;
    
    void setExited(void *x) {
    	__sync_fetch_and_add(&threadExited, 1);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 11 17:47:21 UTC 2017
    - 301 bytes
    - Viewed (0)
Back to top