This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: RFC: NSS prototypes


Thorsten Kukuk <kukuk@suse.de> writes:

> No, our SunRPC implementation is not multi-thread safe. So NIS
> cannot be multi-threaded, too. In the moment all NSS NIS functions
> have a global lock.

This is not what I mean by multi-threaded.  Concurrent execution of
the same code in multiple threads is fine but not necessary.  But it
should be possible to use the innetgr() function in one thread and
getnetgrent() in another.  This is at least what is generally allowed
and implemented (also for files-netgrp).  From what I've seen the
nis-netgr code won't allow this since the cursor is global.

If this information could be moved in the struct __netgrent structure
at least the case I mentioned will work.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]