X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;ds=inline;f=include%2Fyaz%2Fmutex.h;h=67c614512dcf9a73caae5b597f569c779d0fca47;hb=01f73e12327022619d6ca45d6624abd8de947552;hp=a93a0490ad1ef19ecab63c6d475c6b6cc469148b;hpb=d940392c53c32ccf76fb287cc5b997b9e921a431;p=yaz-moved-to-github.git diff --git a/include/yaz/mutex.h b/include/yaz/mutex.h index a93a049..67c6145 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-2008 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, const char *name); YAZ_END_CDECL @@ -54,6 +56,7 @@ YAZ_END_CDECL /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab