Skip to content

Commit

Permalink
o Properly initialize condition variable
Browse files Browse the repository at this point in the history
  • Loading branch information
hzeller committed Mar 5, 2015
1 parent 744ccd1 commit 9eb0aca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/led-matrix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ class RGBMatrix::UpdateThread : public Thread {
public:
UpdateThread(GPIO *io, FrameCanvas *initial_frame)
: io_(io), running_(true),
current_frame_(initial_frame), next_frame_(NULL) {}
current_frame_(initial_frame), next_frame_(NULL) {
pthread_cond_init(&frame_done_, NULL);
}

void Stop() {
MutexLock l(&running_mutex_);
Expand Down

0 comments on commit 9eb0aca

Please sign in to comment.