mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 18:01:06 +02:00
channellist: paint events in additional box in a separated thread
Origin commit data
------------------
Commit: d35cf3cd55
Author: TangoCash <eric@loxat.de>
Date: 2016-09-28 (Wed, 28 Sep 2016)
Origin message was:
------------------
- channellist: paint events in additional box in a separated thread
This commit is contained in:
@@ -46,6 +46,8 @@
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <pthread.h>
|
||||
#include <semaphore.h>
|
||||
|
||||
enum {
|
||||
LIST_MODE_FAV,
|
||||
@@ -117,6 +119,11 @@ private:
|
||||
int infozone_height;
|
||||
int previous_channellist_additional;
|
||||
|
||||
int paint_events_index;
|
||||
sem_t paint_events_sem;
|
||||
pthread_t paint_events_thr;
|
||||
pthread_mutex_t paint_events_mutex;
|
||||
|
||||
const char * unit_short_minute;
|
||||
|
||||
CEPGData epgData;
|
||||
@@ -147,9 +154,11 @@ private:
|
||||
void calcSize();
|
||||
std::string MaxChanNr();
|
||||
void paintPig(int x, int y, int w, int h);
|
||||
void paint_events();
|
||||
void paint_events(int index);
|
||||
CChannelEventList evtlist;
|
||||
void readEvents(const t_channel_id channel_id);
|
||||
void paint_events(CChannelEventList &evtlist);
|
||||
static void *paint_events(void *arg);
|
||||
void readEvents(const t_channel_id channel_id, CChannelEventList &evtlist);
|
||||
void showdescription(int index);
|
||||
typedef std::pair<std::string,int> epg_pair;
|
||||
std::vector<epg_pair> epgText;
|
||||
|
Reference in New Issue
Block a user