Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for destructors (0.3 sec)

  1. src/runtime/testdata/testprogcgo/destructor.c

    #include "_cgo_export.h"
    
    static void callDestructorCallback() {
    	GoDestructorCallback();
    }
    
    static void (*destructorFn)(void);
    
    void registerDestructor() {
    	destructorFn = callDestructorCallback;
    }
    
    __attribute__((destructor))
    static void destructor() {
    	if (destructorFn) {
    		destructorFn();
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 21:26:05 UTC 2023
    - 459 bytes
    - Viewed (0)
  2. src/runtime/testdata/testprogcgo/destructor.go

    Ian Lance Taylor <******@****.***> 1681938997 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 21:26:05 UTC 2023
    - 442 bytes
    - Viewed (0)
  3. tensorflow/c/eager/dlpack.h

                                                                 TF_Status* status,
                                                                 TFE_Context* ctx);
    
    // Calls the destructor of DLManagedTensor, used in the destructor of PyCapsule.
    TF_CAPI_EXPORT extern void TFE_CallDLManagedTensorDeleter(void* dlm_ptr);
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Mar 28 08:41:24 UTC 2020
    - 1.6K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest-test-part.h

    namespace testing {
    
    // A copyable object representing the result of a test part (i.e. an
    // assertion or an explicit FAIL(), ADD_FAILURE(), or SUCCESS()).
    //
    // Don't inherit from TestPartResult as its destructor is not virtual.
    class GTEST_API_ TestPartResult {
     public:
      // The possible outcomes of a test part (i.e. an assertion or an
      // explicit SUCCEED(), FAIL(), or ADD_FAILURE()).
      enum Type {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  5. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest-test-part.h

    namespace testing {
    
    // A copyable object representing the result of a test part (i.e. an
    // assertion or an explicit FAIL(), ADD_FAILURE(), or SUCCESS()).
    //
    // Don't inherit from TestPartResult as its destructor is not virtual.
    class GTEST_API_ TestPartResult {
     public:
      // The possible outcomes of a test part (i.e. an assertion or an
      // explicit SUCCEED(), FAIL(), or ADD_FAILURE()).
      enum Type {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  6. src/runtime/sys_darwin_arm64.go

    package runtime
    
    import (
    	"internal/abi"
    	"internal/goarch"
    	"unsafe"
    )
    
    // libc function wrappers. Must run on system stack.
    
    //go:nosplit
    //go:cgo_unsafe_args
    func g0_pthread_key_create(k *pthreadkey, destructor uintptr) int32 {
    	ret := asmcgocall(unsafe.Pointer(abi.FuncPCABI0(pthread_key_create_trampoline)), unsafe.Pointer(&k))
    	KeepAlive(k)
    	return ret
    }
    func pthread_key_create_trampoline()
    
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 30 03:11:18 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  7. src/runtime/cgo/callbacks.go

    var x_cgo_sys_thread_create byte
    var _cgo_sys_thread_create = &x_cgo_sys_thread_create
    
    // Indicates whether a dummy thread key has been created or not.
    //
    // When calling go exported function from C, we register a destructor
    // callback, for a dummy thread key, by using pthread_key_create.
    
    //go:cgo_import_static x_cgo_pthread_key_created
    //go:linkname x_cgo_pthread_key_created x_cgo_pthread_key_created
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  8. src/runtime/cgo/gcc_libinit.c

    			pthread_cond_wait(&runtime_init_cond, &runtime_init_mu);
    		}
    
    		// The key and x_cgo_pthread_key_created are for the whole program,
    		// whereas the specific and destructor is per thread.
    		if (x_cgo_pthread_key_created == 0 && pthread_key_create(&pthread_g, pthread_key_destructor) == 0) {
    			x_cgo_pthread_key_created = 1;
    		}
    
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 01:07:18 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/variable_info.h

      // We can't use a optional<mutex_lock> here because it confuses the compiler's
      // thread safety analysis. Instead we use a boolean flag and release the lock
      // in the VariableInfo destructor.
      bool lock_held_ = false;
      bool shared_lock_held_ = false;
    
      // Whether this variable is going to be mutated. Left false if the caller
      // doesn't provide this information.
      bool read_only_ = false;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 14 21:57:02 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/saved_model/core/revived_types/restored_resource.cc

      // did not have their destroy_resource function saved, meaning they will
      // leak resources.
      //
      // Check that handle is null before calling destroy_resource function in case
      // destructor is invoked unintentionally.
      if (destroy_resource_ != nullptr && handle() != nullptr) {
        Status status = ExecuteNoArgDummyReturnFunction(destroy_resource_);
        if (!status.ok()) {
          LOG(WARNING)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 14 19:16:58 UTC 2023
    - 3.1K bytes
    - Viewed (0)
Back to top