X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Fmutex.h;h=814b3821ce82c92e24646ab4c853e938a2089579;hb=6bc9db9f9f6944f86f1337a9a4f1e232678afc7b;hp=0daca15a09690eacd256c55be8139a5bb99f7770;hpb=379504a233e3e2cc85bca1e7b6d864f1395aec7c;p=yaz-moved-to-github.git diff --git a/include/yaz/mutex.h b/include/yaz/mutex.h index 0daca15..814b382 100644 --- a/include/yaz/mutex.h +++ b/include/yaz/mutex.h @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2009 Index Data. + * Copyright (C) 1995-2010 Index Data. * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -47,6 +47,8 @@ YAZ_EXPORT void yaz_mutex_enter(YAZ_MUTEX); YAZ_EXPORT void yaz_mutex_leave(YAZ_MUTEX); /** \brief destroy MUTEX */ YAZ_EXPORT void yaz_mutex_destroy(YAZ_MUTEX *); +/** \brief sets name of MUTEX for debugging purposes */ +void yaz_mutex_set_name(YAZ_MUTEX p, int log_level, const char *name); YAZ_END_CDECL