mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
Fixed a possible deadlock in detailview
This commit is contained in:
parent
f4369c0772
commit
41eb32389d
@ -1,12 +1,12 @@
|
|||||||
#include "detailview.h"
|
#include "detailview.h"
|
||||||
|
|
||||||
cDetailView::cDetailView(const cEvent *event, cFooter *footer) {
|
cDetailView::cDetailView(const cEvent *event, cFooter *footer) : cThread("DetailView") {
|
||||||
this->event = event;
|
this->event = event;
|
||||||
this->footer = footer;
|
this->footer = footer;
|
||||||
}
|
}
|
||||||
|
|
||||||
cDetailView::~cDetailView(void){
|
cDetailView::~cDetailView(void){
|
||||||
Cancel(-1);
|
Cancel(3);
|
||||||
while (Active())
|
while (Active())
|
||||||
cCondWait::SleepMs(10);
|
cCondWait::SleepMs(10);
|
||||||
#if VDRVERSNUM >= 20301
|
#if VDRVERSNUM >= 20301
|
||||||
|
6
view.c
6
view.c
@ -5,7 +5,7 @@
|
|||||||
* cView
|
* cView
|
||||||
********************************************************************************************/
|
********************************************************************************************/
|
||||||
|
|
||||||
cView::cView(void) {
|
cView::cView(void) : cThread("View") {
|
||||||
activeView = 0;
|
activeView = 0;
|
||||||
scrollable = false;
|
scrollable = false;
|
||||||
tabbed = false;
|
tabbed = false;
|
||||||
@ -641,7 +641,7 @@ cSeriesView::cSeriesView(int seriesId, int episodeId) : cView() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cSeriesView::~cSeriesView(void) {
|
cSeriesView::~cSeriesView(void) {
|
||||||
Cancel(-1);
|
Cancel(3);
|
||||||
while (Active())
|
while (Active())
|
||||||
cCondWait::SleepMs(10);
|
cCondWait::SleepMs(10);
|
||||||
}
|
}
|
||||||
@ -863,7 +863,7 @@ cMovieView::cMovieView(int movieId) : cView() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cMovieView::~cMovieView(void) {
|
cMovieView::~cMovieView(void) {
|
||||||
Cancel(-1);
|
Cancel(3);
|
||||||
while (Active())
|
while (Active())
|
||||||
cCondWait::SleepMs(10);
|
cCondWait::SleepMs(10);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user