diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-03-21 21:30:51 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-03-21 21:30:51 +0000 |
commit | 27686443c577d76538047f2d90ca987895a11bd2 (patch) | |
tree | 2f6029b4a804995b43b2efc21f1618732484b20d /src/xine-utils/xineutils.h | |
parent | 7f53ed9651fc9d88f8a7d7364dd2088ce2f18a56 (diff) | |
download | xine-lib-27686443c577d76538047f2d90ca987895a11bd2.tar.gz xine-lib-27686443c577d76538047f2d90ca987895a11bd2.tar.bz2 |
verbose mutex - will this be usefull for debugging?
CVS patchset: 1609
CVS date: 2002/03/21 21:30:51
Diffstat (limited to 'src/xine-utils/xineutils.h')
-rw-r--r-- | src/xine-utils/xineutils.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/xine-utils/xineutils.h b/src/xine-utils/xineutils.h index 28ffb7620..349fc594f 100644 --- a/src/xine-utils/xineutils.h +++ b/src/xine-utils/xineutils.h @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xineutils.h,v 1.9 2002/02/06 02:20:59 f1rmb Exp $ + * $Id: xineutils.h,v 1.10 2002/03/21 21:30:51 guenter Exp $ * */ #ifndef XINEUTILS_H @@ -34,6 +34,25 @@ extern "C" { #include "attributes.h" #include "compat.h" + /* + * debugable mutexes + */ + + typedef struct { + pthread_mutex_t mutex; + char id[80]; + char *locked_by; + } xine_mutex_t; + + int xine_mutex_init (xine_mutex_t *mutex, const pthread_mutexattr_t *mutexattr, + char *id); + + int xine_mutex_lock (xine_mutex_t *mutex, char *who); + int xine_mutex_unlock (xine_mutex_t *mutex, char *who); + int xine_mutex_destroy (xine_mutex_t *mutex); + + + /* CPU Acceleration */ /* |