I read the code for multi-threaded support and am not
sure if it is a bug or not. The original source code
is (in mt_support.c):
static mutex_type *
_mt_res(int groupID, int resourceID)
{
    if (groupID < 1) {
        return 0;
    }
    if (groupID >= MT_MAX_IDS) {
        return 0;
    }
    if (resourceID < 1) {
        return 0;
    }
    if (resourceID >= MT_LIB_MAXIMUM) {
        return 0;
    }
    return (&s_res[groupID][resourceID]);
}
 so when groupID == 0 || resourceID == 0, there will
be no lock returned. Actually, we may want a lock when
groupID ==0 && resourceID == 0. Could someone help me
with this?

thanks in advance.

Ying



        
                
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to