Menu

#2 synch.h header file incompatible with Debian 3.1r1a

open
nobody
None
5
2005-07-21
2005-07-21
No

To compile applications on Debian 3.1r1a using the STL
version include files, the following lines need be
conditionalized:
Reference STL version 111 (1.1.1? 1.11? 11.1? 111?)

- Line 142:
#ifdef __USE_UNIX98
#define rwlock_t pthread_rwlock_t
#endif
- Lines 178-184:
#ifdef __USE_UNIX98
int rwlock_init( rwlock_t *rwlp, int type, void
*arg );
int rwlock_destroy( rwlock_t *rwlp );
int rw_rdlock( rwlock_t *rwlp );
int rw_wrlock( rwlock_t *rwlp );
int rw_unlock( rwlock_t *rwlp );
int rw_tryrdlock( rwlock_t *rwlp );
int rw_trywrlock( rwlock_t *rwlp );
#endif
Lines 207-213:
#ifdef __USE_UNIX98
int rwlock_init();
int rwlock_destroy();
int rw_rdlock();
int rw_wrlock();
int rw_unlock();
int rw_tryrdlock();
int rw_trywrlock();
#endif

It seems the pthreads version on Debian does not have
a declaration for pthread_rwlock_t.

Discussion


Log in to post a comment.