X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Fmutex.h;h=d9573ec021e8e58121b1e4e1cdd1b4b7fb85fea0;hp=ff8babbd429865dccfa61fe8ebd18c8664cfcf2f;hb=6dc532f9c0278f7156e2940285247442681ddbf7;hpb=9f11f349958f122419856006d9295eb0ce41274d diff --git a/include/yaz/mutex.h b/include/yaz/mutex.h index ff8babb..d9573ec 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-2010 Index Data. + * Copyright (C) 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: @@ -46,22 +46,11 @@ typedef struct yaz_cond *YAZ_COND; /** \brief create MUTEX \param mutexp is pointer to MUTEX handle (*mutexp must be NULL) - - It is important that *mutexp is NULL. If not, yaz_mutex_create will - not modify the handle (assumes it is already created!) - */ -YAZ_EXPORT void yaz_mutex_create(YAZ_MUTEX *mutexp); - -/** \brief create MUTEX with custom MUTEX flags - \param mutexp is pointer to MUTEX handle (*mutexp must be NULL) - \param attr is flags defined by PTHREAD_MUTEX_xxx It is important that *mutexp is NULL. If not, yaz_mutex_create will not modify the handle (assumes it is already created!) - - This calls yax_mutex_create_attr(mutexp, PTHREAD_MUTEX_NORMAL) */ -YAZ_EXPORT void yaz_mutex_create_attr(YAZ_MUTEX *mutexp, int flags); +YAZ_EXPORT void yaz_mutex_create(YAZ_MUTEX *mutexp); /** \brief enter critical section / AKA lock \param mutex MUTEX handle @@ -100,7 +89,7 @@ void yaz_mutex_set_name(YAZ_MUTEX mutex, int log_level, const char *name); /** \brief creates condition variable \param p reference to condition handle - + Upon successful completion *p holds the condition handle; *p = 0 on error. */ @@ -108,7 +97,7 @@ YAZ_EXPORT void yaz_cond_create(YAZ_COND *p); /** \brief destroys condition variable \param p reference to condition handle - + Upon completion *p holds 0. */ YAZ_EXPORT