MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlDictReference

Function xmlDictReference

ThirdParty/libxml2/vtklibxml2/dict.c:318–325  ·  view source on GitHub ↗

* xmlDictReference: * @dict: the dictionary * * Increment the reference counter of a dictionary * * Returns 0 in case of success and -1 in case of error */

Source from the content-addressed store, hash-verified

316 * Returns 0 in case of success and -1 in case of error
317 */
318int
319xmlDictReference(xmlDictPtr dict) {
320 if (dict == NULL) return -1;
321 xmlMutexLock(&xmlDictMutex);
322 dict->ref_counter++;
323 xmlMutexUnlock(&xmlDictMutex);
324 return(0);
325}
326
327/**
328 * xmlDictFree:

Callers 15

xmlDictCreateSubFunction · 0.85
xmlXPathNewParserContextFunction · 0.85
xmlXPathTryStreamCompileFunction · 0.85
xmlConvertCRNGFunction · 0.85
xmlSAX2StartDocumentFunction · 0.85
xmlSchemaNewSchemaFunction · 0.85
xmlSchemaAddSchemaDocFunction · 0.85
xmlExpNewCtxtFunction · 0.85
xmlStreamCompileFunction · 0.85

Calls 2

xmlMutexLockFunction · 0.85
xmlMutexUnlockFunction · 0.85

Tested by

no test coverage detected