pcp
[Top] [All Lists]

PCP Updates: Remove Unnecessary Locks from Around __pmGetAddrInfo()

To: PCP <pcp@xxxxxxxxxxx>
Subject: PCP Updates: Remove Unnecessary Locks from Around __pmGetAddrInfo()
From: Dave Brolley <brolley@xxxxxxxxxx>
Date: Fri, 03 May 2013 11:24:34 -0400
Delivered-to: pcp@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4
The following has been pushed to the brolley/dev branch of the pcpfans repository:

commit 99d255d276eee6f9780867bb9ce6a4a0b83314f7
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date:   Fri May 3 11:05:09 2013 -0400

    Remove __pmLock_libpcp locks from around calls to __pmGetAddrInfo().

    One of the benefits of using getaddrinfo() and getnameinfo(),
    as opposed to their deprecated counterparts, gethostbyname() and
    gethostbyaddr(), is that the new APIs are re-entrant. As such, it
    is not necessary to enforce locks around calls to these functions
    nor the iteration over the returned data.

    This commit removes the remaining locks around __pmGetAddrInfo().
    There were no remaining locks around __pmGetNameInfo().

<Prev in Thread] Current Thread [Next in Thread>
  • PCP Updates: Remove Unnecessary Locks from Around __pmGetAddrInfo(), Dave Brolley <=