aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/dicerollernode.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2014-12-13 21:45:20 +0100
committerRenaud G <renaud@rolisteam.org>2014-12-13 21:45:20 +0100
commit68341ae8768c1fb4097c7f4d6fe12361552ec368 (patch)
tree854cba59ddcac8ed3bf4dbf0116e9ca1495e6410 /node/dicerollernode.cpp
parent375b75f53251728073b802f3f5b625df0f2ac856 (diff)
downloadOneRoll-68341ae8768c1fb4097c7f4d6fe12361552ec368.tar.gz
OneRoll-68341ae8768c1fb4097c7f4d6fe12361552ec368.zip
-removal of commented out lines.
Diffstat (limited to 'node/dicerollernode.cpp')
-rw-r--r--node/dicerollernode.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/node/dicerollernode.cpp b/node/dicerollernode.cpp
index 8e86cce..6a203b9 100644
--- a/node/dicerollernode.cpp
+++ b/node/dicerollernode.cpp
@@ -41,7 +41,6 @@ DiceRollerNode::DiceRollerNode(quint64 faces)
}
void DiceRollerNode::run(ExecutionNode* previous)
{
-// qDebug() << "DiceRollerNode node";
if(NULL!=previous)
{
Result* result=previous->getResult();
@@ -57,31 +56,6 @@ void DiceRollerNode::run(ExecutionNode* previous)
die->roll();
m_myDiceResult->insertResult(die);
}
-
- /* quint64 threadCount = QThread::idealThreadCount();
- if(threadCount>m_diceCount)
- {
- threadCount=m_diceCount;
- }
- quint64 dicePass = m_diceCount/threadCount;
- quint64 remainingDiceCount=m_diceCount;
-
- QThreadPool threadpool;
-
-
- for(int i=threadCount-1;i>=0 && remainingDiceCount>0;--i)
- {
- remainingDiceCount-=dicePass;
- if((remainingDiceCount<dicePass)||((i==0)&&(remainingDiceCount!=0)))
- {
- dicePass+=remainingDiceCount;
- remainingDiceCount=0;
- }
- qDebug() << remainingDiceCount << dicePass << i << threadCount;
- threadpool.start(new DiceRoller(m_mutex,m_myDiceResult,m_faces,dicePass));
- }
-
- threadpool.waitForDone();*/
if(NULL!=m_nextNode)
{
m_nextNode->run(this);