Pathfinding thread library
Revision 1:c61d8bf5c357, committed 2017-08-23
- 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 |
diff -r 2f4ac599c1b7 -r c61d8bf5c357 pathfinding.cpp --- 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
diff -r 2f4ac599c1b7 -r c61d8bf5c357 pathfinding.h --- 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: