Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for destroyed (0.17 sec)

  1. src/cmd/cgo/internal/test/issue1435.go

    //
    // void cleanup(void) {
    //   int i;
    //   pthread_mutex_lock(&mu);
    //   all_done = 1;
    //   pthread_mutex_unlock(&mu);
    //   for (i = 0; i < nts; i++) {
    //     pthread_join(t[i], NULL);
    //   }
    //   pthread_mutex_destroy(&mu);
    //   free(t);
    // }
    import "C"
    
    // compareStatus is used to confirm the contents of the thread
    // specific status files match expectations.
    func compareStatus(filter, expect string) error {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Jul 28 21:31:41 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  2. misc/cgo/gmp/gmp.go

    func (z *Int) String() string {
    	if z == nil {
    		return "nil"
    	}
    	z.doinit()
    	p := C.mpz_get_str(nil, 10, &z.i[0])
    	s := C.GoString(p)
    	C.free(unsafe.Pointer(p))
    	return s
    }
    
    func (z *Int) destroy() {
    	if z.init {
    		C.mpz_clear(&z.i[0])
    	}
    	z.init = false
    }
    
    /*
     * arithmetic
     */
    
    // Add sets z = x + y and returns z.
    func (z *Int) Add(x, y *Int) *Int {
    	x.doinit()
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 9.5K bytes
    - Viewed (0)
Back to top