On Sun, 09 Jul 2006 18:31:57 +0100 peter burden <peter.burden@gmail.com> wrote:
Jerry Feldman wrote:
On Sun, 09 Jul 2006 16:27:30 +0100 peter burden <peter.burden@gmail.com> wrote:
I am not familiar with "pthread_rwlock". The locks are set using pthread_mutex_lock and released using pthread_mutex_unlock.
I'm also using mutex_lock and cond_wait etc., elsewhere in the programme for various other types of synchronisation.
gcc -O -c -g -I/home/peter/spider/include -DDEBUG=7 -pthread -DLINUX -funsigned-char -Wall -Wextra -fstack-protector-all -c -o cachegen.o /home/peter/spider/source/cachegen.c /home/peter/spider/source/cachegen.c: In function ‘getfromcache’: /home/peter/spider/source/cachegen.c:157: warning: implicit declaration of function ‘pthread_rwlock_rdlock’ /home/peter/spider/source/cachegen.c:171: warning: implicit declaration of function ‘pthread_rwlock_unlock’ /home/peter/spider/source/cachegen.c:175: warning: implicit declaration of function ‘pthread_rwlock_wrlock’ These are not standard POSIX thread functions, but are Unix 98 functions. Add #define __UNIX98
-- Jerry Feldman <gaf@blu.org> Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9