apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shubham Singal" <shubham.sin...@gmail.com>
Subject Bug - apr_reslist_acquire_count
Date Mon, 18 Sep 2006 10:12:10 GMT
Hi,

There was a small bug when I was trying to compile the trunk code at
http://svn.apache.org/repos/asf/apr/apr-util/trunk/




The file http://svn.apache.org/repos/asf/apr/apr-util/trunk/misc/apr_reslist.c
defines
APU_DECLARE(apr_uint32_t) apr_reslist_acquire_count(apr_reslist_t *reslist)
{
    apr_uint32_t count;

    apr_thread_mutex_lock(reslist->listlock);
    count = reslist->ntotal - reslist->nidle;
    apr_thread_mutex_unlock(reslist->listlock);

    return count;
}


while
http://svn.apache.org/repos/asf/apr/apr-util/trunk/include/apr_reslist.h
requires
/**
 * Return the number of outstanding resources.
 * @param reslist The resource list.
 */
APU_DECLARE(apr_uint32_t) apr_reslist_acquired_count(apr_reslist_t *reslist);




May be a spelling mistake, acquired and acquire.

Regards,
Shubham Singal

Mime
View raw message