X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;ds=inline;f=include%2Fyaz%2Fmutex.h;h=67c614512dcf9a73caae5b597f569c779d0fca47;hb=01f73e12327022619d6ca45d6624abd8de947552;hp=2fb24e1a8dfd65d9be5f3b6e0ab96e65baf23ba8;hpb=ee6ab2ee3a9ee1a8c65d7272ec7fba1d886f5af0;p=yaz-moved-to-github.git diff --git a/include/yaz/mutex.h b/include/yaz/mutex.h index 2fb24e1..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: @@ -24,7 +24,6 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -/* $Id: mutex.h,v 1.1 2007-04-17 20:26:18 adam Exp $ */ /** * \file mutex.h @@ -48,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 @@ -55,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