100+ results results for 'destructor lang:C++ repo:larsivi/amber-clang' (2039 ms)
41//------------------------------------------------------------------------ 42// Destructor 43CScriptBind_MatchMaking::~CScriptBind_MatchMaking()addrcache.cc https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C++ | 331 lines
61// confined to this routine in order to guarantee that the class constructor 62// will never fail. Other methods (except the destructor) cannot be invoked 63// until this method has been called successfully. After the object has been 67// Return value: "true" if initialization succeeded, "false" if it failed. 68// No other method except the destructor may be invoked if this function 69// returns false. The caller is responsible for checking the return valuesource_context.pb.cc https://gitlab.com/github-cloud-corporation/protobuf | C++ | 394 lines
136SourceContext::~SourceContext() { 137 // @@protoc_insertion_point(destructor:google.protobuf.SourceContext) 138 SharedDtor();CAnimatedMeshMD2.cpp https://gitlab.com/JFT/Irrlicht_extended | C++ | 465 lines
232 233//! destructor 234CAnimatedMeshMD2::~CAnimatedMeshMD2()nortrans.cpp https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C++ | 175 lines
77/** 78 * Destructor. 79 */almashot-hdr.cpp https://gitlab.com/adam.lukaitis/OpenCamera | C++ | 551 lines
37 38// This triggers openmp constructors and destructors to be called upon library load/unload 39void __attribute__((constructor)) initialize_openmp() {} 39void __attribute__((constructor)) initialize_openmp() {} 40void __attribute__((destructor)) release_openmp() {} 41TOPS_Structured_Matrix_Impl.cxx https://gitlab.com/Bulut81/CodeVault | C++ | 201 lines
44 45// user defined destructor 46void TOPS::Structured::Matrix_impl::_dtor() { 47 // DO-NOT-DELETE splicer.begin(TOPS.Structured.Matrix._dtor) 48 // Insert-Code-Here {TOPS.Structured.Matrix._dtor} (destructor) 49 // DO-NOT-DELETE splicer.end(TOPS.Structured.Matrix._dtor)test_intrusive_list.cc https://gitlab.com/adam.lukaitis/fplutil | C++ | 1155 lines
196 197TEST_F(intrusive_list_test, destructor) { 198 list_.push_back(one_);btCollisionWorld.cpp https://gitlab.com/dannywillems/mass_collide | C++ | 1353 lines
45 46//When the user doesn't provide dispatcher or broadphase, create basic versions (and delete them in destructor) 47#include "BulletCollision/CollisionDispatch/btCollisionDispatcher.h"TwAdvanced1.cpp https://gitlab.com/dannywillems/mass_collide | C++ | 737 lines
69 Scene(); // constructor 70 ~Scene(); // destructor 71 void Init(bool changeLightPos); // (re)initialize the scene 117 118// Destructor 119Scene::~Scene()MenuRender3DModelMgr.cpp https://gitlab.com/blackbird91/CS188_AI_Game | C++ | 1301 lines
83// Name: ~CMenuRender3DModelMgr 84// Desc: Destructor 85//-------------------------------------------------------------------------------------------------- 87{ 88 CRY_ASSERT_MESSAGE(s_instanceCount,"No instances left to delete in destructor"); 89 CRY_ASSERT_MESSAGE(m_bReleaseMe,"Deleting an instance which isn't marked for release");MatchmakingTelemetry.cpp https://gitlab.com/blackbird91/CS188_AI_Game | C++ | 615 lines
48//-------------------------------------------------------------------------- 49//Destructor 50CMatchmakingTelemetry::~CMatchmakingTelemetry() 232//------------------------------------------------------------------------- 233//Destructor 234CMMTelemetryProducer::~CMMTelemetryProducer()MatchmakingHandler.cpp https://gitlab.com/blackbird91/CS188_AI_Game | C++ | 754 lines
49//------------------------------------------------------------------------ 50//Destructor 51CMatchMakingHandler::~CMatchMakingHandler()KillCamGameEffect.cpp https://gitlab.com/blackbird91/CS188_AI_Game | C++ | 431 lines
57// Name: ~CKillCamGameEffect 58// Desc: Destructor 59//--------------------------------------------------------------------------------------------------GameEffect.cpp https://gitlab.com/blackbird91/CS188_AI_Game | C++ | 491 lines
35// Name: ~GameSDKCGameEffect 36// Desc: Destructor 37//-------------------------------------------------------------------------------------------------- 65#if DEBUG_GAME_FX_SYSTEM 66 m_debugName = GetName(); // Store name so it can be accessed in destructor and debugging 67#endifExplosionGameEffect.cpp https://gitlab.com/blackbird91/CS188_AI_Game | C++ | 724 lines
169// Name: ~CExplosionGameEffect 170// Desc: Destructor 171//--------------------------------------------------------------------------------------------------EnergyShieldGameEffect.cpp https://gitlab.com/blackbird91/CS188_AI_Game | C++ | 991 lines
128// Name: ~CEnergyShieldGameEffect 129// Desc: Destructor 130//--------------------------------------------------------------------------------------------------GameEffectsSystem.cpp https://gitlab.com/blackbird91/CS188_AI_Game | C++ | 1200 lines
197// Name: ~CGameEffectsSystem 198// Desc: Destructor 199//--------------------------------------------------------------------------------------------------CircularStatsStorage.cpp https://gitlab.com/blackbird91/CS188_AI_Game | C++ | 1156 lines
116{ 117 Clear(); // not strictly necessary as circular buffer entries are all purgable anyway and the states will be freed by the destructors called by the array delete below, but this will allow us to verify the circular buffer is empty at the end of a stats save 118 delete [] m_states;pgparameters.cpp https://gitlab.com/redgis/PhD-SNN-Simulator | C++ | 188 lines
130 // close lua 131 lua_close (pLua); //Theoretically, no need to close : automatically done by destructor of lua_State (i.e. pLua) class. But we do it anyway. 132OpenjdkJvmTi.cc https://gitlab.com/androidopensourceproject/platform-art | C++ | 1234 lines
78 79// NB These are heap allocated to avoid the static destructors being run if an agent calls exit(3). 80// These should never be null.relative_patcher_arm_base.cc https://gitlab.com/androidopensourceproject/platform-art | C++ | 551 lines
287ArmBaseRelativePatcher::~ArmBaseRelativePatcher() { 288 // All work done by member destructors. 289}cxx_db.cpp https://gitlab.com/OpenSourceMirror/sourcenav | C++ | 668 lines
40 41#define DB_DESTRUCTOR(_name, _argspec, _arglist, _retok) \ 42int Db::_name _argspec \ 77// no operations are permitted on the Db (other than 78// destructor). Leaving the Db handle open and not 79// doing a close is generally considered an error. 164 165// private method to cleanup after destructor or during close. 166// If the environment was created by this Db object, we need to delete it. 213 214DB_DESTRUCTOR(close, (u_int32_t flags), (db, flags), DB_RETOK_STD) 215DB_METHOD(compact, (DbTxn *txnid, Dbt *start, Dbt *stop, 344 345DB_DESTRUCTOR(rename, 346 (const char *file, const char *database, const char *newname,Value.cc https://gitlab.com/OpenSourceMirror/sourcenav | C++ | 2024 lines
365 // Here we rely on the fact that Agent is derived 366 // GlishObject, which has a virtual destructor. 367 Unref( (GlishObject*) AgentVal() );cxx_env.cpp https://gitlab.com/OpenSourceMirror/sourcenav | C++ | 1217 lines
269// no operations are permitted on the DbEnv (other than 270// destructor). Leaving the DbEnv handle open and not 271// doing a close is generally considered an error. 328 329// called by destructors before the DB_ENV is destroyed. 330void DbEnv::cleanup()NptXbmcFile.cpp https://gitlab.com/sloshedpuppie/LetsGoRetro | C++ | 546 lines
61public: 62 // constructors and destructor 63 NPT_XbmcFileStream(NPT_XbmcFileReference file) : 71protected: 72 // constructors and destructors 73 virtual ~NPT_XbmcFileStream() {} 127public: 128 // constructors and destructor 129 NPT_XbmcFileInputStream(NPT_XbmcFileReference& file) : 209public: 210 // constructors and destructor 211 NPT_XbmcFileOutputStream(NPT_XbmcFileReference& file) : 254public: 255 // constructors and destructor 256 NPT_XbmcFile(NPT_File& delegator);qry_dat.cpp https://gitlab.com/sloshedpuppie/LetsGoRetro | C++ | 745 lines
162 163//empty destructor 164field_value::~field_value(){DVDInputStreamPVRManager.cpp https://gitlab.com/sloshedpuppie/LetsGoRetro | C++ | 699 lines
57/************************************************************************ 58 * Description: Class destructor 59 */CWIID_WiiRemote.cpp https://gitlab.com/sloshedpuppie/LetsGoRetro | C++ | 776 lines
139 140//Destructor 141CWiiRemote::~CWiiRemote()NptWinRtSockets.cpp https://gitlab.com/sloshedpuppie/LetsGoRetro | C++ | 664 lines
39 public: 40 // constructors and destructor 41 NPT_WinRtTcpClientSocket(); 67public: 68 // constructors and destructor 69 NPT_WinRtSocketInputStream(StreamSocket^ socket, NPT_Timeout timeout); 94public: 95 // constructors and destructor 96 NPT_WinRtSocketOutputStream(StreamSocket^ socket, NPT_Timeout timeout);NptStdcFile.cpp https://gitlab.com/sloshedpuppie/LetsGoRetro | C++ | 508 lines
90public: 91 // constructors and destructor 92 NPT_StdcFileWrapper(FILE* file, const char* name) : m_File(file), m_Name(name) {} 114public: 115 // constructors and destructor 116 NPT_StdcFileStream(NPT_StdcFileReference file) : 124protected: 125 // constructors and destructors 126 virtual ~NPT_StdcFileStream() {} 180public: 181 // constructors and destructor 182 NPT_StdcFileInputStream(NPT_StdcFileReference& file) : 266public: 267 // constructors and destructor 268 NPT_StdcFileOutputStream(NPT_StdcFileReference& file) :SVGSVGElement.cpp https://gitlab.com/x33n/phantomjs | C++ | 801 lines
109 // There are cases where removedFromDocument() is not called. 110 // see ContainerNode::removeAllChildren, called by its destructor. 111 document()->accessSVGExtensions()->removeTimeContainer(this);RenderLayerBacking.cpp https://gitlab.com/x33n/phantomjs | C++ | 1208 lines
96 97// Get the scrolling coordinator in a way that works inside RenderLayerBacking's destructor. 98static ScrollingCoordinator* scrollingCoordinatorFromLayer(RenderLayer* layer)CookieManager.cpp https://gitlab.com/x33n/phantomjs | C++ | 661 lines
102 // being used for both secure and non-secure protocols; this leak is OK since 103 // there's nothing important in the hashtable destructors, and the memory will be reclaimed on exit 104 105 // FIXME: CookieDatabaseBackingStore is not deleted, only flushed 106 // (currently the destructor is never called since this class is a 107 // singleton; on exit, the db is flushed manually. This call is only hereFrame.cpp https://gitlab.com/x33n/phantomjs | C++ | 1167 lines
215 216 // FIXME: We should not be doing all this work inside the destructor 217AudioContext.cpp https://gitlab.com/x33n/phantomjs | C++ | 1017 lines
205#endif 206 // AudioNodes keep a reference to their context, so there should be no way to be in the destructor if there are still AudioNodes around. 207 ASSERT(!m_isInitialized);c.cc https://gitlab.com/x33n/phantomjs | C++ | 594 lines
60 void* state_; 61 void (*destructor_)(void*); 62 int (*compare_)( 68 virtual ~leveldb_comparator_t() { 69 (*destructor_)(state_); 70 } 86 void* state_; 87 void (*destructor_)(void*); 88 const char* (*name_)(void*); 461 result->state_ = state; 462 result->destructor_ = destructor; 463 result->compare_ = compare; 486 result->state_ = state; 487 result->destructor_ = destructor; 488 result->create_ = create_filter;StringPrototype.cpp https://gitlab.com/x33n/phantomjs | C++ | 1209 lines
49 50ASSERT_HAS_TRIVIAL_DESTRUCTOR(StringPrototype); 51ObjectConstructor.cpp https://gitlab.com/x33n/phantomjs | C++ | 518 lines
58 59ASSERT_HAS_TRIVIAL_DESTRUCTOR(ObjectConstructor); 60NumberPrototype.cpp https://gitlab.com/x33n/phantomjs | C++ | 534 lines
70 71ASSERT_HAS_TRIVIAL_DESTRUCTOR(NumberPrototype); 72MathObject.cpp https://gitlab.com/x33n/phantomjs | C++ | 641 lines
34 35ASSERT_HAS_TRIVIAL_DESTRUCTOR(MathObject); 36JSScope.cpp https://gitlab.com/x33n/phantomjs | C++ | 635 lines
36 37ASSERT_HAS_TRIVIAL_DESTRUCTOR(JSScope); 38JSObject.cpp https://gitlab.com/x33n/phantomjs | C++ | 1388 lines
67 68ASSERT_HAS_TRIVIAL_DESTRUCTOR(JSObject); 69ASSERT_HAS_TRIVIAL_DESTRUCTOR(JSFinalObject);JSONObject.cpp https://gitlab.com/x33n/phantomjs | C++ | 834 lines
45 46ASSERT_HAS_TRIVIAL_DESTRUCTOR(JSONObject); 47JSArray.cpp https://gitlab.com/x33n/phantomjs | C++ | 1250 lines
46 47ASSERT_HAS_TRIVIAL_DESTRUCTOR(JSArray); 48JITOpcodes.cpp https://gitlab.com/x33n/phantomjs | C++ | 1342 lines
99 size_t allocationSize = JSObject::allocationSize(structure->inlineCapacity()); 100 MarkedAllocator* allocator = &m_vm->heap.allocatorForObjectWithoutDestructor(allocationSize); 101Heap.cpp https://gitlab.com/x33n/phantomjs | C++ | 896 lines
60_Pragma("clang diagnostic ignored \"-Wglobal-constructors\"") \ 61_Pragma("clang diagnostic ignored \"-Wexit-time-destructors\"") \ 62static type name arguments; \qsplitter.cpp https://gitlab.com/x33n/phantomjs | C++ | 1733 lines
126/*! 127 Destructor. 128*/qundostack.cpp https://gitlab.com/x33n/phantomjs | C++ | 1179 lines
108 The parent command then owns this command and will delete it in its 109 destructor. 110 126 The parent command then owns this command and will delete it in its 127 destructor. 128qlayoutitem.cpp https://gitlab.com/x33n/phantomjs | C++ | 857 lines
265/*! 266 Destructor. 267*/ 298/*! 299 Destructor. 300*/qpixmapfilter.cpp https://gitlab.com/x33n/phantomjs | C++ | 1381 lines
238/*! 239 Destructor of pixmap convolution filter. 240qmlvisitor.cpp https://gitlab.com/x33n/phantomjs | C++ | 693 lines
103/*! 104 The destructor does nothing. 105 */qdocindexfiles.cpp https://gitlab.com/x33n/phantomjs | C++ | 1335 lines
403 meta = FunctionNode::Ctor; 404 else if (element.attribute("meta") == "destructor") 405 meta = FunctionNode::Dtor;ditaxmlgenerator.cpp https://gitlab.com/x33n/phantomjs | C++ | 1460 lines
157 "cxxFunctionDefinition", 158 "cxxFunctionDestructor", 159 "cxxFunctionDetail",cppcodeparser.cpp https://gitlab.com/x33n/phantomjs | C++ | 1431 lines
74/*! 75 The destructor is trivial. 76 */codeparser.cpp https://gitlab.com/x33n/phantomjs | C++ | 485 lines
91/*! 92 The destructor removes this code parser from the static 93 list of code parsers.qpainterpath.cpp https://gitlab.com/x33n/phantomjs | C++ | 1677 lines
80 // note - we must up-cast to QPainterPathData since QPainterPathPrivate 81 // has a non-virtual destructor! 82 if (d && !d->ref.deref())qshortcutmap.cpp https://gitlab.com/x33n/phantomjs | C++ | 707 lines
147/*! \internal 148 QShortcutMap destructor. 149*/qplatformwindow.cpp https://gitlab.com/x33n/phantomjs | C++ | 645 lines
66/*! 67 Virtual destructor does not delete its top level window. 68*/qplatformintegration.cpp https://gitlab.com/x33n/phantomjs | C++ | 505 lines
253 where this function is never called, ensuring that the event dispatcher is 254 still deleted at some point (typically in the destructor). 255qdbusconnection.cpp https://gitlab.com/x33n/phantomjs | C++ | 1195 lines
155 respectively. Those connections are opened when first used and are 156 closed when the QCoreApplication destructor is run. 157qsharedpointer.cpp https://gitlab.com/x33n/phantomjs | C++ | 1336 lines
105 QScopedPointer simply holds a pointer to a heap allocated object and 106 deletes it in its destructor. This class is useful when an object needs to 107 be heap allocated and deleted, but no more. QScopedPointer is lightweight, 208 This class is never instantiated directly: the constructors and 209 destructor are private and, in C++11, deleted. Only the create() function 210 may be called to return an object of this type. See below for construction 247 directly. This class also provides a create() member that returns the 248 pointer, and hides its constructors and destructor. With C++11, they're 249 deleted. 281 ExternalRefCountWithContiguousData::deleter, it simply calls the \tt T 282 destructor directly. 283qshareddata.cpp https://gitlab.com/x33n/phantomjs | C++ | 613 lines
117 \e{behind the scenes} reference counter. \c EmployeeData has a default 118 constructor, a copy constructor, and a destructor. Normally, trivial 119 implementations of these are all that is needed in the \e {data}qthread_win.cpp https://gitlab.com/x33n/phantomjs | C++ | 786 lines
102} 103Q_DESTRUCTOR_FUNCTION(qt_free_tls) 104#else // !Q_OS_WINRT 133} 134Q_DESTRUCTOR_FUNCTION(qt_free_tls) 135#endif // Q_OS_WINRTqthread_unix.cpp https://gitlab.com/x33n/phantomjs | C++ | 745 lines
141 // POSIX says the value in our key is set to zero before calling 142 // this destructor function, so we need to set it back to the 143 // right value... 155 // ... but we must reset it to zero before returning so we aren't 156 // called again (POSIX allows implementations to call destructor 157 // functions repeatedly until all values are zero) 181} 182Q_DESTRUCTOR_FUNCTION(destroy_current_thread_data_key) 183qmutex.cpp https://gitlab.com/x33n/phantomjs | C++ | 663 lines
102 - Always non-recursive 103 - Do not use tryLock with timeout > 0, else you can have a leak (see the ~QMutex destructor) 104*/qlibrary.cpp https://gitlab.com/x33n/phantomjs | C++ | 1115 lines
398#ifdef __GLIBC__ 399 // glibc has a bug in unloading from global destructors 400 // see https://bugzilla.novell.com/show_bug.cgi?id=622977qvariant.cpp https://gitlab.com/x33n/phantomjs | C++ | 1762 lines
121{ 122 QVariantDestructor<CoreTypesFilter> cleaner(d); 123 QMetaTypeSwitcher::switcher<void>(cleaner, d->type, 0);qsharedmemory.cpp https://gitlab.com/x33n/phantomjs | C++ | 602 lines
114 release the shared memory segment. But if that last thread or 115 process crashes without running the QSharedMemory destructor, the 116 shared memory segment survives the crash. 171/*! 172 The destructor clears the key, which forces the shared memory object 173 to \l {detach()} {detach} from its underlying shared memoryqmetatype.cpp https://gitlab.com/x33n/phantomjs | C++ | 1537 lines
107 provides a public default constructor, a public copy constructor and 108 a public destructor. 109 It is needed to use the type \a Type as a custom type in QVariant. 286 \value NeedsConstruction This type has non-trivial constructors. If the flag is not set instances can be safely initialized with memset to 0. 287 \value NeedsDestruction This type has a non-trivial destructor. If the flag is not set calls to the destructor are not necessary before discarding objects. 288 \value MovableType An instance of a type having this attribute can be safely moved by memcpy. 313 Any class or struct that has a public default 314 constructor, a public copy constructor, and a public destructor 315 can be registered. 430 Unlike destroy(), this function only invokes the type's 431 destructor, it doesn't invoke the delete operator. 432 \sa QMetaType::construct()qabstracteventdispatcher.cpp https://gitlab.com/x33n/phantomjs | C++ | 524 lines
99{ 100 // this function may be called by a global destructor after 101 // timerIdFreeList() has been destructedqglobalstatic.cpp https://gitlab.com/x33n/phantomjs | C++ | 524 lines
70 Compared to Q_GLOBAL_STATIC, and assuming that \c MyType is a class or 71 struct that has a constructor, a destructor, or is otherwise non-POD, the 72 above has the following drawbacks: 94 95 \section1 Constructor and destructor 96 102 It is not possible to use Q_GLOBAL_STATIC with types that have protected or 103 private default constructors or destructors (for Q_GLOBAL_STATIC_WITH_ARGS(), 104 a protected or private constructor matching the arguments). If the type in 106 issue by deriving from the type and creating public a constructor and 107 destructor. If the type has them as private, a friend declaration is 108 necessary before deriving. 111 previously-defined \c MyOtherType which has a protected default constructor 112 and/or a protected destructor (or has them as private, but that defines \c 113 MyType as a friend).dynamic_message.cc https://gitlab.com/x33n/phantomjs | C++ | 558 lines
315 316 // We need to manually run the destructors for repeated fields and strings, 317 // just as we ran their constructors in the the DynamicMessage constructor.python-proto2.cc https://gitlab.com/x33n/phantomjs | C++ | 1420 lines
281 0, // tp_itemsize 282 (destructor)CMessageDealloc, // tp_dealloc 283 0, // tp_printdemangle.cc https://gitlab.com/x33n/phantomjs | C++ | 1307 lines
148 const char *out_end; // End of output string. 149 const char *prev_name; // For constructors/destructors. 150 int prev_name_length; // For constructors/destructors.regexp.cc https://gitlab.com/Blueprint-Marketing/re2 | C++ | 935 lines
26 27// Destructor. Assumes already cleaned up children. 28// Private: use Decref() instead of delete to destroy Regexps.unwind-x64.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 450 lines
84 * Note: this doesn't work for IndirectFixup situations. However, 85 * currently IndirectFixup is only used for destructors, which 86 * aren't allowed to throw, so this is ok. 221 * We don't do anything during the search phase---before attempting cleanup, 222 * we want all deeper frames to have run their object destructors (which can 223 * have side effects like setting tl_regState) and spilled any values theyrefcount-opts.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 1114 lines
86Since this pass converts instructions that may (in general) re-enter the 87VM---running arbitrary PHP code for a destructor---it's potentially profitable 88to run it earlier than other parts of refcount opts. For example, it can allowirgen-call.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 1028 lines
136 // This is special. We need to move the stackpointer in case LdObjMethod 137 // calls a destructor. Otherwise it would clobber the ActRec we just pushed. 138 updateMarker(env); 367 // This is special. We need to move the stackpointer incase LdArrFuncCtx 368 // calls a destructor. Otherwise it would clobber the ActRec we just 369 // pushed.unwind.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 582 lines
176 // When throwing from a constructor, we normally want to avoid running the 177 // destructor on an object that hasn't been fully constructed yet. But if 178 // we're unwinding through the constructor's RetC, the constructor has 192 * 193 * - If a destructor for any of these things throws a php 194 * exception, it's swallowed at the dtor boundary and we keep 196 * 197 * - If the destructor for any of these things throws a fatal, 198 * it's swallowed, and we set surprise flags to throw a fatal 201 * - If the second case happened and we have to run another 202 * destructor, its enter hook will throw, but it will be 203 * swallowed again.fastcgi-session.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 717 lines
213 // readEOF will call shutdown() which may free this out from under us, we 214 // could add a DestructorGuard, but we'd only end up calling shutdown() 215 // ourselves. Instead we return immediately. 245 * While processing FastCGI records it's possible that a socket error will 246 * cause us to begin destructing, we construct a DestructorGuard and check 247 * the value of m_shutdown periodically to guard against deadlock and use- 250void FastCGISession::readDataAvailable(size_t len) noexcept { 251 DestructorGuard dg(this); 252 411void FastCGISession::shutdown() noexcept { 412 DestructorGuard dg(this); // close() may call destroy() 413 417 // We may have gotten here via close(); if not perform the close ourselves. 418 // close() may destroy() us, so we have the destructor guard 419 if (m_sock->good()) {libevent-server.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 689 lines
79/////////////////////////////////////////////////////////////////////////////// 80// constructor and destructor 81php_ftp.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 1460 lines
300 301static void ftp_destructor_ftpbuf(zend_rsrc_list_entry *rsrc TSRMLS_DC) 302{ 309{ 310 le_ftpbuf = zend_register_list_destructors_ex(ftp_destructor_ftpbuf, NULL, le_ftpbuf_name, module_number); 311 REGISTER_LONG_CONSTANT("FTP_ASCII", FTPTYPE_ASCII, CONST_PERSISTENT | CONST_CS);ezc_test.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 820 lines
53 REGISTER_INI_ENTRIES(); 54 le_ezc_test_hash = zend_register_list_destructors_ex( 55 ezc_hash_dtor, NULL, le_ezc_test_hash_name, module_number);type-variant.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 1206 lines
120static_assert(kDestrTableSize == 6, 121 "size of g_destructors[] must be kDestrTableSize"); 122 122 123RawDestructor g_destructors[] = { 124 nullptr, 124 nullptr, 125 (RawDestructor)getMethodPtr(&StringData::release), 126 (RawDestructor)getMethodPtr(&ArrayData::release), 126 (RawDestructor)getMethodPtr(&ArrayData::release), 127 (RawDestructor)getMethodPtr(&ObjectData::release), // may replace at runtime 128 (RawDestructor)getMethodPtr(&ResourceData::release), 128 (RawDestructor)getMethodPtr(&ResourceData::release), 129 (RawDestructor)getMethodPtr(&RefData::release), 130};array-iterator.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 1646 lines
167 // object and is responsible for decreffing the object when the 168 // ArrayIter's lifetime ends. Normally ArrayIter's destructor takes 169 // care of this, but the destructor will not get invoked if andce.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 1026 lines
165 166// Returns whether decrefing a type could run a destructor. 167bool couldRunDestructor(const Type& t) { 168 // We could check for specialized objects to see if they don't 169 // declare a user-defined destructor, but currently don't. 170 return t.couldBe(TObj) || t.couldBe(TCArr) || t.couldBe(TRef); 198 * Indicates that the cell is only used if it was the last reference alive. 199 * For instance, a PopC will call the destructor of the top-of-stack object 200 * if it was the last reference alive, and this counts as an example of 371/* 372 * It may be ok to remove pops on objects with destructors in some scenarios 373 * (where it won't change the observable point at which a destructor runs). We 374 * could also look at the object type and see if it is known that it can't have 375 * a user-defined destructor. 376 *method_statement.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 731 lines
58/////////////////////////////////////////////////////////////////////////////// 59// constructors/destructors 60class_scope.cpp https://gitlab.com/Blueprint-Marketing/hhvm | C++ | 1263 lines
112 if (f->getName() == "__construct") setAttribute(HasConstructor); 113 else if (f->getName() == "__destruct") setAttribute(HasDestructor); 114 else if (f->getName() == "__get") setAttribute(HasUnknownPropGetter);XWindowsScreen.cpp https://gitlab.com/thomasphillips3/synergy | C++ | 1849 lines
84// we must also ensure that these objects do not use the display in 85// their destructors or, if they do, we can tell them not to. This 86// is to handle unexpected disconnection of the X display, when anyjscntxt.cpp https://gitlab.com/stefan.pataky/tinyrpg | C++ | 1394 lines
102void 103js_ThreadDestructorCB(void *ptr) 104{Entity_test.cc https://gitlab.com/sortofsleepy/noise-ink-lettering | C++ | 606 lines
535 536TEST_CASE("TestComponentDestructorCalledWhenManagerDestroyed") { 537 struct Freed {CSmtp.cpp https://gitlab.com/mmudel/pw.elka.tin.mailer | C++ | 987 lines
32 33/// DESCRIPTION: Destructor of CSmtp class. 34/// RETURNS: noneqwt_plot_scaleitem.cpp https://gitlab.com/fsgdez/apm_planner | C++ | 453 lines
66 67//! Destructor 68QwtPlotScaleItem::~QwtPlotScaleItem()android_StreamPlayer.cpp https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C++ | 420 lines
34 const sp<CallbackProtector> &callbackProtector, 35 // sp<StreamPlayer> would cause StreamPlayer's destructor to run during it's own 36 // construction. If you pass in a sp<> to 'this' inside a constructor, then first the 37 // refcount is increased from 0 to 1, then decreased from 1 to 0, which causes the object's 38 // destructor to run from inside it's own constructor. 39 StreamPlayer * /* const sp<StreamPlayer> & */ player) :BasicHashtable_test.cpp https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C++ | 577 lines
364 365TEST_F(BasicHashtableTest, Destructor_AfterElementsAdded_DestroysThem) { 366 {VectorImpl.cpp https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C++ | 634 lines
61 "[%p] subclasses of VectorImpl must call finish_vector()" 62 " in their destructor. Leaking %d bytes.", 63 this, (int)(mCount*mItemSize));Looper.cpp https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C++ | 561 lines
106void Looper::initTLSKey() { 107 int result = pthread_key_create(& gTLSKey, threadDestructor); 108 LOG_ALWAYS_FATAL_IF(result != 0, "Could not allocate TLS key."); 110 111void Looper::threadDestructor(void *st) { 112 Looper* const self = static_cast<Looper*>(st); 113 if (self != NULL) { 114 self->decStrong((void*)threadDestructor); 115 } 121 if (looper != NULL) { 122 looper->incStrong((void*)threadDestructor); 123 } 127 if (old != NULL) { 128 old->decStrong((void*)threadDestructor); 129 }slang_rs_object_ref_count.cpp https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C++ | 1376 lines
183// the scope). 184class DestructorVisitor : public clang::StmtVisitor<DestructorVisitor> { 185 private: 208 // The source location for the variable declaration that we are trying to 209 // insert destructors for. Note that InsertDestructors() will not generate 210 // destructor calls for source locations that occur lexically before this 268 269DestructorVisitor::DestructorVisitor(clang::ASTContext &C, 270 clang::Stmt *OuterStmt, 281 282void DestructorVisitor::VisitStmt(clang::Stmt *S) { 283 for (clang::Stmt::child_iterator I = S->child_begin(), E = S->child_end(); 297 298void DestructorVisitor::VisitBreakStmt(clang::BreakStmt *BS) { 299 VisitStmt(BS);MCLinker.cpp https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C++ | 718 lines
49 50/// Destructor 51MCLinker::~MCLinker()DisplayListRenderer.cpp https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C++ | 1281 lines
141 caches.resourceCache.decrementRefcountLocked(bitmap); 142 caches.resourceCache.destructorLocked(bitmap); 143 } 150 caches.resourceCache.decrementRefcountLocked(mShaders.itemAt(i)); 151 caches.resourceCache.destructorLocked(mShaders.itemAt(i)); 152 }Caches.cpp https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C++ | 526 lines
46/////////////////////////////////////////////////////////////////////////////// 47// Constructors/destructor 48///////////////////////////////////////////////////////////////////////////////Asset.cpp https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C++ | 897 lines
360/* 361 * Destructor. Release resources. 362 */ 542 if (mFp != NULL) { 543 // can only be NULL when called from destructor 544 // (otherwise we would never return this object)Shader.cpp https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C++ | 566 lines
53 54static void Shader_destructor(JNIEnv* env, jobject o, SkShader* shader, SkiaShader* skiaShader) 55{ 59 if (android::uirenderer::Caches::hasInstance()) { 60 android::uirenderer::Caches::getInstance().resourceCache.destructor(skiaShader); 61 } else {Bitmap.cpp https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C++ | 706 lines
253 254static void Bitmap_destructor(JNIEnv* env, jobject, SkBitmap* bitmap) { 255#ifdef USE_OPENGL_RENDERER 256 if (android::uirenderer::Caches::hasInstance()) { 257 android::uirenderer::Caches::getInstance().resourceCache.destructor(bitmap); 258 return;CameraService.cpp https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C++ | 589 lines
105 if (mBusy[i]) { 106 ALOGE("camera %d is still in use in destructor!", i); 107 } 229 // Declare this before the lock to make absolutely sure the 230 // destructor won't be called with the lock held. 231 Mutex::Autolock lock(mServiceLock); 291 // Declare this before the lock to make absolutely sure the 292 // destructor won't be called with the lock held. 293 sp<Client> client; 326// The reason we need this busy bit is a new CameraService::connect() request 327// may come in while the previous Client's destructor has not been run or is 328// still running. If the last strong reference of the previous Client is gone 328// still running. If the last strong reference of the previous Client is gone 329// but the destructor has not been finished, we should not allow the new Client 330// to be created because we need to wait for the previous Client to tear downCameraClient.cpp https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C++ | 959 lines
231 // Make sure disconnect() is done once and once only, whether it is called 232 // from the user directly, or called by the destructor. 233 if (mHardware == 0) return;StagefrightRecorder.cpp https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C++ | 1479 lines
84StagefrightRecorder::~StagefrightRecorder() { 85 ALOGV("Destructor"); 86 stop();mediaplayer.cpp https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C++ | 810 lines
67{ 68 ALOGV("destructor"); 69 AudioSystem::releaseAudioSessionId(mAudioSessionId);SoundPool.cpp https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C++ | 917 lines
80{ 81 ALOGV("SoundPool destructor"); 82 mDecodeThread->quit(); 494{ 495 ALOGV("Sample::destructor sampleID=%d, fd=%d", mSampleID, mFd); 496 if (mFd > 0) {AudioTrack.cpp https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C++ | 1581 lines
168{ 169 ALOGV_IF(mSharedBuffer != 0, "Destructor sharedBuffer: %p", mSharedBuffer->pointer()); 170VideoEditorAudioPlayer.cpp https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk | C++ | 894 lines
72 73 ALOGV("Destructor"); 74 if (mStarted) {