Changeset 17752 for trunk


Ignore:
Timestamp:
05/01/14 19:17:19 (11 years ago)
Author:
tbretz
Message:
The condition was wrong... it was not possible to properly set the number of threads to be used and the default was all instead of none.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mcore/zofits.h

    r17751 r17752  
    8080public:
    8181        /// static setter for the default number of threads to use. -1 means all available physical cores
    82         static uint32_t DefaultNumThreads(const uint32_t &_n=-2) { static uint32_t n=0; if (int32_t(_n)<-1) n=_n; return n; }
     82        static uint32_t DefaultNumThreads(const uint32_t &_n=-2) { static uint32_t n=0; if (int32_t(_n)>=-1) n=_n; return n; }
    8383        static uint32_t DefaultMaxMemory(const uint32_t &_n=0) { static uint32_t n=1000000; if (_n>0) n=_n; return n; }
    8484        static uint32_t DefaultMaxNumTiles(const uint32_t &_n=0) { static uint32_t n=1000; if (_n>0) n=_n; return n; }
Note: See TracChangeset for help on using the changeset viewer.