Forklift lift thread

lift.cpp

Committer:
williampeers
Date:
2017-08-23
Revision:
0:fb7984ae3c0c

File content as of revision 0:fb7984ae3c0c:

#include "lift.h"

/*
Initialise object.
Call initators for any local objects.
*/
Lift::Lift(osPriority priority, int memory) {
    lift_thread = new Thread(priority, memory);
}

/*
Infinite loop that will be run. like a main loop.
*/
void Lift::run() {
    while (true) {
        
    }
}

/*
Called by main at the start of operation to start the thread running.
*/
void Lift::start() {
    lift_thread.start(callback(this, &Lift::run));
}