Home
last modified time | relevance | path

Searched refs:destroy_func (Results 1 – 13 of 13) sorted by relevance

/external/rust/crates/grpcio-sys/grpc/src/core/lib/transport/
Dmetadata.cc562 static void* get_user_data(UserData* user_data, void (*destroy_func)(void*)) { in get_user_data()
564 destroy_func) { in get_user_data()
571 void* grpc_mdelem_get_user_data(grpc_mdelem md, void (*destroy_func)(void*)) { in grpc_mdelem_get_user_data()
583 return get_user_data(am->user_data(), destroy_func); in grpc_mdelem_get_user_data()
587 return get_user_data(im->user_data(), destroy_func); in grpc_mdelem_get_user_data()
593 static void* set_user_data(UserData* ud, void (*destroy_func)(void*), in set_user_data()
595 GPR_ASSERT((data == nullptr) == (destroy_func == nullptr)); in set_user_data()
600 if (destroy_func != nullptr) { in set_user_data()
601 destroy_func(data); in set_user_data()
606 ud->destroy_user_data.Store(destroy_func, grpc_core::MemoryOrder::RELEASE); in set_user_data()
[all …]
Dmetadata.h186 void* grpc_mdelem_set_user_data(grpc_mdelem md, void (*destroy_func)(void*),
/external/grpc-grpc/src/core/lib/transport/
Dmetadata.cc458 void* grpc_mdelem_get_user_data(grpc_mdelem md, void (*destroy_func)(void*)) { in grpc_mdelem_get_user_data()
470 if (gpr_atm_acq_load(&im->destroy_user_data) == (gpr_atm)destroy_func) { in grpc_mdelem_get_user_data()
481 void* grpc_mdelem_set_user_data(grpc_mdelem md, void (*destroy_func)(void*), in grpc_mdelem_set_user_data()
486 destroy_func(user_data); in grpc_mdelem_set_user_data()
489 destroy_func(user_data); in grpc_mdelem_set_user_data()
496 GPR_ASSERT((user_data == nullptr) == (destroy_func == nullptr)); in grpc_mdelem_set_user_data()
501 if (destroy_func != nullptr) { in grpc_mdelem_set_user_data()
502 destroy_func(user_data); in grpc_mdelem_set_user_data()
507 gpr_atm_rel_store(&im->destroy_user_data, (gpr_atm)destroy_func); in grpc_mdelem_set_user_data()
Dmetadata.h131 void* grpc_mdelem_set_user_data(grpc_mdelem md, void (*destroy_func)(void*),
/external/tensorflow/tensorflow/c/experimental/grappler/
Dgrappler_internal.h84 if (optimizer_.destroy_func != nullptr) { in ~CGraphOptimizer()
85 (*optimizer_.destroy_func)(c_optimizer_); in ~CGraphOptimizer()
Dgrappler.h145 void (*destroy_func)(void*); member
148 #define TP_OPTIMIZER_STRUCT_SIZE TF_OFFSET_OF_END(TP_Optimizer, destroy_func)
Dgrappler_test.cc42 params->optimizer->destroy_func = nullptr; in PopulateDefaultParam()
/external/vulkan-validation-layers/scripts/
Dlayer_chassis_dispatch_generator.py1462 …def outputNDOs(self, ndo_type, ndo_name, ndo_count, prefix, index, indent, destroy_func, destroy_a… argument
1490 if (destroy_func == False) or (destroy_array == True):
1507 …def uniquify_members(self, members, indent, prefix, array_index, create_func, destroy_func, destro… argument
1524 …tputNDOs(member.type, member.name, count_name, prefix, index, indent, destroy_func, destroy_array,…
1556 …_members(struct_info, indent, local_prefix, array_index, create_func, destroy_func, destroy_array,…
1580 …fy_members(struct_info, indent, new_prefix, array_index, create_func, destroy_func, destroy_array,…
1597 …fy_members(struct_info, indent, new_prefix, array_index, create_func, destroy_func, destroy_array,…
1629 destroy_func = True if destroy_ndo_code else False
1630 …t_code) = self.uniquify_members(cmd_info, indent, '', 0, create_func, destroy_func, destroy_array,…
1638 if (not destroy_func) or (destroy_array):
Dobject_tracker_generator.py421 destroy_func = self.GenDestroyFunc()
425 self.otwrite('cpp', '%s' % destroy_func)
/external/mesa3d/src/gallium/winsys/virgl/common/
Dvirgl_resource_cache.c71 virgl_resource_cache_entry_release_func destroy_func, in virgl_resource_cache_init() argument
77 cache->entry_release_func = destroy_func; in virgl_resource_cache_init()
Dvirgl_resource_cache.h65 virgl_resource_cache_entry_release_func destroy_func,
/external/pigweed/third_party/fuchsia/repo/sdk/lib/fit/include/lib/fit/internal/
Dfunction.h51 decltype(move) move_func, decltype(destroy) destroy_func) in base_target_ops()
55 destroy(destroy_func) {} in base_target_ops()
63 decltype(move) move_func, decltype(destroy) destroy_func, in target_ops()
65 : base_target_ops(target_type_id_func, get_func, move_func, destroy_func), in target_ops()
/external/vulkan-validation-layers/tests/
Dvktestbinding.cpp40 #define NON_DISPATCHABLE_HANDLE_DTOR(cls, destroy_func) \ argument
42 if (initialized()) destroy_func(device(), handle(), NULL); \