Pathfinding thread library

Files at this revision

API Documentation at this revision

Comitter:
williampeers
Date:
Wed Aug 23 03:18:06 2017 +0000
Parent:
0:2f4ac599c1b7
Commit message:
Ready to implement

Changed in this revision

pathfinding.cpp Show annotated file Show diff for this revision Revisions of this file
pathfinding.h Show annotated file Show diff for this revision Revisions of this file
--- a/pathfinding.cpp	Wed Aug 23 02:25:50 2017 +0000
+++ b/pathfinding.cpp	Wed Aug 23 03:18:06 2017 +0000
@@ -21,5 +21,5 @@
 Called by main at the start of operation to start the thread running.
 */
 void Pathfinding::start() {
-    pathfinding_thread.start(callback(this, &Pathfinding::run));
+    pathfinding_thread->start(callback(this, &Pathfinding::run));
 }
\ No newline at end of file
--- a/pathfinding.h	Wed Aug 23 02:25:50 2017 +0000
+++ b/pathfinding.h	Wed Aug 23 03:18:06 2017 +0000
@@ -5,7 +5,7 @@
 
 class Pathfinding{
 private:
-    Thread pathfinding_thread;
+    Thread* pathfinding_thread;
     void run();
 
 public: