- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 42 for destructors (0.37 sec)
-
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) -
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) -
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) -
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) -
tensorflow/c/experimental/filesystem/plugins/gcs/cleanup.h
limitations under the License. ==============================================================================*/ // MakeCleanup(f) returns an RAII cleanup object that calls 'f' in its // destructor. The easiest way to use MakeCleanup is with a lambda argument, // capturing the return value in an 'auto' local variable. Most users will not // need more sophisticated syntax than that. // // Example: // void func() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 09 11:16:00 UTC 2020 - 3.4K bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/lockosthread.go
ready := make(chan bool, 1) C.threadExited = 0 go func() { // This goroutine must be running on a new thread. runtime.LockOSThread() subThread = C.pthread_self() // Register a pthread destructor so we can tell this // thread has exited. var key C.pthread_key_t C.pthread_key_create(&key, (*[0]byte)(unsafe.Pointer(C.setExited))) C.pthread_setspecific(key, unsafe.Pointer(new(int))) ready <- true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 02 20:21:33 UTC 2023 - 2.5K bytes - Viewed (0) -
src/runtime/cgo/asm_ppc64x.s
BL runtimeĀ·load_g(SB) #ifdef GO_PPC64X_HAS_FUNCDESC // Load the real entry address from the first slot of the function descriptor. // The first argument fn might be null, that means dropm in pthread key destructor. CMP R3, $0 BEQ nil_fn MOVD 8(R3), R2 MOVD (R3), R3 nil_fn: #endif MOVD R3, FIXED_FRAME+0(R1) // fn unsafe.Pointer MOVD R4, FIXED_FRAME+8(R1) // a unsafe.Pointer // Skip R5 = n uint32
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 00:43:51 UTC 2023 - 2.4K bytes - Viewed (0) -
tensorflow/c/eager/abstract_context.h
virtual ~AbstractContext() {} public: AbstractContextKind getKind() const { return kind_; } // Release any underlying resources, including the interface object. // // WARNING: The destructor of this class is marked as protected to disallow // clients from directly destroying this object since it may manage its own // lifetime through ref counting. Thus clients MUST call Release() in order to
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Oct 24 11:16:58 UTC 2021 - 3K bytes - Viewed (0) -
tensorflow/cc/experimental/libtf/value.h
return v; } /// Constructs a TaggedValue with type CAPSULE with a default destructor. template <class T> static TaggedValue Capsule(T* data) { return Capsule(static_cast<void*>(data), [](void* x) { delete static_cast<T*>(x); }); } /// Constructs a TaggedValue with type CAPSULE with a custom destructor. static TaggedValue Capsule(void* data, void (*deleter)(void*)) { TaggedValue v;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 05:23:45 UTC 2024 - 20.4K bytes - Viewed (0) -
tensorflow/cc/client/client_session.cc
Status status = NewSession(session_options, &new_session); TF_CHECK_OK(status) << status; impl_.reset(new Impl(new_session, scope.graph_as_shared_ptr())); CHECK_NOTNULL(impl()->session_.get()); } // Define destructor here so we can forward declare `Impl` in client_session.h. // If we define a dtor in the header file or use the default dtor, // unique_ptr<Impl> needs the complete type. ClientSession::~ClientSession() {}
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 28 09:04:10 UTC 2024 - 7.1K bytes - Viewed (0)