Searched refs:destructor (Results 1 - 25 of 49) sorted by relevance

12

/external/clang/test/Sema/
H A Dconstructor-attribute.c9 int x __attribute__((destructor)); // expected-warning {{'destructor' attribute only applies to functions}}
10 int f() __attribute__((destructor));
11 int f() __attribute__((destructor(1)));
12 int f() __attribute__((destructor(1,2))); // expected-error {{attribute takes no more than 1 argument}}
13 int f() __attribute__((destructor(1.0))); // expected-error {{'destructor' attribute requires parameter 1 to be an integer constant}}
H A Dwarn-unused-function.c36 __attribute__((destructor)) static void bar3(void);
/external/chromium/base/threading/
H A Dthread_local_storage_posix.cc11 ThreadLocalStorage::Slot::Slot(TLSDestructorFunc destructor) argument
14 Initialize(destructor);
17 bool ThreadLocalStorage::Slot::Initialize(TLSDestructorFunc destructor) { argument
19 int error = pthread_key_create(&key_, destructor);
H A Dthread_local_storage.h23 // Prototype for the TLS destructor function, which can be optionally used to
31 explicit Slot(TLSDestructorFunc destructor = NULL);
38 // 'destructor' is a pointer to a function to perform per-thread cleanup of
41 bool Initialize(TLSDestructorFunc destructor);
44 // If a destructor was set for this slot, removes
45 // the destructor so that remaining threads exiting
73 // destructor functions. This function is used internally.
H A Dthread_local_storage_win.cc14 // pointers to the destructor for each TLS that we allocate.
29 // An array of destructor function pointers for the slots. If
30 // a slot has a destructor, it will be stored in its corresponding
59 ThreadLocalStorage::Slot::Slot(TLSDestructorFunc destructor) argument
62 Initialize(destructor);
65 bool ThreadLocalStorage::Slot::Initialize(TLSDestructorFunc destructor) { argument
76 // Setup our destructor.
77 tls_destructors_[slot_] = destructor;
84 // So all we need to do is wipe the destructor.
131 // Windows doesn't support a per-thread destructor wit
[all...]
/external/clang/test/CodeGen/
H A Dconstructor-attribute.c10 void B() __attribute__((destructor));
22 static void D() __attribute__((destructor));
/external/llvm/test/MC/MachO/
H A Dx86_64-sections.s13 .destructor
H A Dx86_32-sections.s13 .destructor
H A Dx86_32-symbols.s30 .destructor
H A Dx86_64-symbols.s30 .destructor
/external/expat/amiga/
H A Dlaunch.c32 void cleanup() __attribute__((destructor));
/external/webkit/Source/JavaScriptCore/API/
H A DJSWeakObjectMapRefPrivate.h52 @param destructor A function to call when the weak map is destroyed.
53 @result A JSWeakObjectMapRef bound to the given context, data and destructor.
57 JS_EXPORT JSWeakObjectMapRef JSWeakObjectMapCreate(JSContextRef ctx, void* data, JSWeakMapDestroyedCallback destructor);
/external/clang/test/SemaCXX/
H A Dvalue-dependent-exprs.cpp30 __attribute__((destructor(1 + I)))
/external/webkit/Source/JavaScriptCore/wtf/
H A DThreadSpecificWin.cpp49 data->destructor(data);
/external/bison/src/
H A Dsymtab.h59 /* Its %type and associated printer and destructor. */
64 const char *destructor; member in struct:symbol
115 void symbol_destructor_set (symbol *sym, const char *destructor, location loc);
H A Dsymtab.c58 res->destructor = NULL;
93 SYMBOL_ATTR_PRINT (destructor);
139 symbol_destructor_set (symbol *sym, const char *destructor, location loc) argument
141 if (destructor)
143 if (sym->destructor)
144 redeclaration (sym, "%destructor", sym->destructor_location, loc);
145 sym->destructor = destructor;
329 if (orig->destructor || alias->destructor)
[all...]
/external/chromium/base/
H A Dopenssl_util.h17 template <typename T, void (*destructor)(T*)>
29 if (ptr_) (*destructor)(ptr_);
102 // the constructor call as it's not possible to trace a destructor's callsite.
/external/chromium/crypto/
H A Dopenssl_util.h16 template <typename T, void (*destructor)(T*)>
28 if (ptr_) (*destructor)(ptr_);
96 // the constructor call as it's not possible to trace a destructor's callsite.
/external/libvpx/vp8/common/
H A Dthreading.h35 #define ts_key_create(ts_key, destructor) {ts_key = TlsAlloc();};
57 #define ts_key_create(ts_key, destructor) pthread_key_create (&(ts_key), destructor);
/external/icu4c/common/
H A Ducln_imp.h29 * b) GCC uses destructor function attribute
107 /* GCC - use __attribute((destructor)) */
108 static void ucln_destructor() __attribute__((destructor)) ;
/external/chromium/testing/gtest/test/
H A Dgtest_catch_exceptions_test.py81 'in the test fixture\'s destructor'
123 'in the test fixture\'s destructor'
139 self.assert_('CxxExceptionInSetUpTestCaseTest destructor '
164 self.assert_('CxxExceptionInSetUpTest destructor '
182 self.assert_('CxxExceptionInTearDownTest destructor '
193 self.assert_('CxxExceptionInTestBodyTest destructor '
/external/mesa3d/src/talloc/
H A Dhieralloc.c23 int (* destructor)(void *); member in struct:hieralloc_header
156 ptr->destructor = NULL;
223 // calls destructor if set, and frees children.
224 // if destructor returns -1, then do nothing and return -1.
236 if (header->destructor)
237 if (header->destructor(ptr))
314 // sets destructor to be called before freeing; dctor return -1 aborts free
315 void hieralloc_set_destructor(const void * ptr, int (* destructor)(void *))
317 get_header(ptr)->destructor = destructor;
[all...]
H A Dhieralloc.h36 // calls destructor if set, and frees children.
37 // if destructor returns -1, then do nothing and return -1.
46 // sets destructor to be called before freeing; dctor return -1 aborts free
47 void hieralloc_set_destructor(const void * ptr, int (* destructor)(void *));
/external/libnl-headers/netlink/cli/
H A Dutils.h60 #define __exit __attribute__((destructor))
/external/bluetooth/glib/gthread/
H A Dgthread-win32.c323 g_private_new_win32_impl (GDestroyNotify destructor) argument
338 g_private_destructors[g_private_next] = destructor;
434 GDestroyNotify destructor = g_private_destructors[i]; local
442 if (destructor && data)
443 destructor (data);

Completed in 538 milliseconds

12