Procházet zdrojové kódy

Corrected ProductionQueue.size() - Now unsigned int, not int.

git-svn-id: https://svn.microneil.com/svn/CodeDweller/trunk@10 d34b734f-a00e-4b39-a726-e4eeb87269ab
wx
madscientist před 15 roky
rodič
revize
a9b1bc7083
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2
    2
      threading.hpp

+ 2
- 2
threading.hpp Zobrazit soubor

@@ -449,7 +449,7 @@ template<typename T>
class ProductionQueue { // Production Queue Class
private:
Mutex myMutex; // Contains a mutex and
volatile int LatestSize; // a volatile (blinking light) size
volatile unsigned int LatestSize; // a volatile (blinking light) size
ProductionGateway myGateway; // integrated with a production
queue<T> myQueue; // gateway and a queue.
@@ -472,7 +472,7 @@ class ProductionQueue {
myGateway.produce(); // indicator and tell the gateway.
} // When we're done it can be grabbed.
int size() { // To check the size we look at
unsigned int size() { // To check the size we look at
return LatestSize; // the blinking light.
}
};

Načítá se…
Zrušit
Uložit