|
From: <enl...@li...> - 2001-05-01 18:48:54
|
Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewd
Dir : e17/libs/ewd/src
Modified Files:
Ewd.h ewd_threads.h
Log Message:
Oops, that's no good, forgot to initialize an important variable :(
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewd/src/Ewd.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- Ewd.h 2001/05/01 18:00:10 1.3
+++ Ewd.h 2001/05/01 18:48:54 1.4
@@ -3,6 +3,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <math.h>
#ifndef TRUE
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewd/src/ewd_threads.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewd_threads.h 2001/05/01 18:00:10 1.2
+++ ewd_threads.h 2001/05/01 18:48:54 1.3
@@ -15,6 +15,7 @@
#define EWD_INIT_LOCKS(structure) \
if (structure) { \
+ structure->readers = 0; \
pthread_mutex_init(&structure->readers_mutex, NULL); \
pthread_mutex_init(&structure->writers_mutex, NULL); \
pthread_cond_init(&structure->readers_cond, NULL); \
@@ -68,12 +69,13 @@
#else /* No pthreads available */
#define EWD_DECLARE_LOCKS
-#define EWD_INIT__LOCKS(structure)
+#define EWD_INIT_LOCKS(structure)
#define EWD_READ_LOCK_STRUCT(structure)
#define EWD_READ_UNLOCK_STRUCT(structure)
#define EWD_WRITE_LOCK_STRUCT(structure)
#define EWD_WRITE_UNLOCK_STRUCT(structure)
#define EWD_THREAD_CREATE(function, args)
+#define EWD_DESTROY_LOCKS(structure)
#define EWD_THREAD_CREATE(function, arg)
|