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

Function xmlThrDefSetGenericErrorFunc

ThirdParty/libxml2/vtklibxml2/globals.c:1039–1048  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1037#endif
1038
1039void
1040xmlThrDefSetGenericErrorFunc(void *ctx, xmlGenericErrorFunc handler) {
1041 xmlMutexLock(&xmlThrDefMutex);
1042 xmlGenericErrorContextThrDef = ctx;
1043 if (handler != NULL)
1044 xmlGenericErrorThrDef = handler;
1045 else
1046 xmlGenericErrorThrDef = xmlGenericErrorDefaultFunc;
1047 xmlMutexUnlock(&xmlThrDefMutex);
1048}
1049
1050void
1051xmlThrDefSetStructuredErrorFunc(void *ctx, xmlStructuredErrorFunc handler) {

Callers

nothing calls this directly

Calls 2

xmlMutexLockFunction · 0.85
xmlMutexUnlockFunction · 0.85

Tested by

no test coverage detected