Revert "changed raspi to own thread class"

This reverts commit a936057619.


Origin commit data
------------------
Branch: master
Commit: 9138f023f2
Author: max_10 <max_10@gmx.de>
Date: 2018-09-20 (Thu, 20 Sep 2018)



------------------
This commit was generated by Migit
This commit is contained in:
max_10
2018-09-20 16:58:06 +02:00
parent 8f8679f113
commit 09b8c49c8b
4 changed files with 14 additions and 13 deletions

View File

@@ -19,7 +19,7 @@
*/
#include <vector>
#include <condition_abstraction.h>
#include <OpenThreads/Condition>
#include "glfb.h"
#include "bcm_host.h"
@@ -47,8 +47,8 @@ static int curr_res;
static int pitch;
static VC_IMAGE_TYPE_T type = VC_IMAGE_ARGB8888;
static Mutex blit_mutex;
static Condition blit_cond;
static OpenThreads::Mutex blit_mutex;
static OpenThreads::Condition blit_cond;
static bool goodbye = false; /* if set main loop is left */
static bool ready = false; /* condition predicate */
@@ -71,7 +71,7 @@ GLFramebuffer::GLFramebuffer(int x, int y)
si.red.offset = 16;
si.transp.offset = 24;
Thread::start();
OpenThreads::Thread::start();
while (!ready)
usleep(1);
}
@@ -80,7 +80,7 @@ GLFramebuffer::~GLFramebuffer()
{
goodbye = true;
blit(); /* wake up thread */
Thread::join();
OpenThreads::Thread::join();
}
void GLFramebuffer::run()