aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/dicerollernode.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2015-04-01 08:12:40 +0200
committerRenaud G <renaud@rolisteam.org>2015-04-01 08:12:40 +0200
commit912e6f5df6b5f51ee3e28544720305fcfd3e6710 (patch)
tree9daf471eee2ac3d7792e3b7991b086c0d2425643 /node/dicerollernode.cpp
parent2225f71200d8513a86f24589d0d6c8e5843439cd (diff)
parent60a0e524561ae86c9509c61b00a5d8ba40a1d7ee (diff)
downloadOneRoll-912e6f5df6b5f51ee3e28544720305fcfd3e6710.tar.gz
OneRoll-912e6f5df6b5f51ee3e28544720305fcfd3e6710.zip
Merge branch 'master' of github-as-renaud:obiwankennedy/DiceParser
Diffstat (limited to 'node/dicerollernode.cpp')
-rw-r--r--node/dicerollernode.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/node/dicerollernode.cpp b/node/dicerollernode.cpp
index 8eecf0d..1fd1a2f 100644
--- a/node/dicerollernode.cpp
+++ b/node/dicerollernode.cpp
@@ -8,24 +8,24 @@
#include <QTime>
-DiceRoller::DiceRoller(QMutex* mutex,DiceResult* diceResult,int faces,int count)
- : m_mutex(mutex),m_sharedDiceResult(diceResult),m_faces(faces),m_diceCount(count)
-{
+//DiceRoller::DiceRoller(QMutex* mutex,DiceResult* diceResult,int faces,int count)
+// : m_mutex(mutex),m_sharedDiceResult(diceResult),m_faces(faces),m_diceCount(count)
+//{
-}
+//}
-void DiceRoller::run()
-{
- for(quint64 i=0; i < m_diceCount ; ++i)
- {
- Die* die = new Die();
- die->setFaces(m_faces);
- die->roll();
- m_mutex->lock();
- m_sharedDiceResult->insertResult(die);
- m_mutex->unlock();
- }
-}
+//void DiceRoller::run()
+//{
+// for(quint64 i=0; i < m_diceCount ; ++i)
+// {
+// Die* die = new Die();
+// die->setFaces(m_faces);
+// die->roll();
+// m_mutex->lock();
+// m_sharedDiceResult->insertResult(die);
+// m_mutex->unlock();
+// }
+//}