source/train/XBaseTemplate.cpp
bool DataDistributeBase::GetBatchSafe(XList * args)
{
    bool r;

    MUTEX_LOCK(loadMutex);
    r = GetBatch(args);
    MUTEX_UNLOCK(loadMutex);

    return r;
}
/* get a batch of samples (for multi-threading) */
get a batch of samples (for multi-threading)
get a batch of samples ( for multi - threading )
bool DataDistributeBase::GetBatchSafe(XList * args)
{
    bool r;
    MUTEX_LOCK(loadMutex);
    r = GetBatch(args);
    MUTEX_UNLOCK(loadMutex);
    return r;
}
bool DataDistributeBase :: GetBatchSafe ( XList * args ) { bool r ; MUTEX_LOCK ( loadMutex ) ; r = GetBatch ( args ) ; MUTEX_UNLOCK ( loadMutex ) ; return r ; }
get a batch of samples (for multi-threading)
get a batch of samples ( for multi - threading )