Changeset 10841 for trunk/FACT++/src


Ignore:
Timestamp:
05/26/11 16:41:53 (13 years ago)
Author:
tbretz
Message:
Added check in GetMaxMemory
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/EventBuilderWrapper.h

    r10836 r10841  
    7070    void SetMaxMemory(unsigned int mb) const
    7171    {
    72         // FIXME:
    73         // Find out if this can be called all the time or only
    74         // when the thread is stopped. Under which circumstances
    75         // is teh call allowed?
     72        if (mb*1000000<GetUsedMemory())
     73        {
     74            // fMsg.Warn("...");
     75            return;
     76        }
     77
    7678        g_maxMem = mb*1000000;
    7779    }
Note: See TracChangeset for help on using the changeset viewer.