[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
I need to use RW-LOCKS in linux, what to #include ?
Hi all,
I need to use rwlocks in my program,
I discovered what I have phtread_rwlock(s) defined in the file
phreads.h, but it's included only when I have __USE_UNIX98 defined.
To define __USE_UNIX98 I must define some _X... variable to 500,
before the file features.h is included (it's included at the top of
pthreads.h)
After I discovered all that and defined that _X.. var to 500,
I still have no pthread_rwlocks_t defined.
Q1: Did anybody know how should I properly include the file to have rwlocks
defined.
Q1: Why this complicated way is used - are there any problems with rwlocks
in linux?
Thanks,
@Maxim
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il