mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
Changes for LOCKING
This commit is contained in:
parent
8f1f2dea33
commit
39dfe767fc
@ -43,8 +43,11 @@ void cChannelColumn::drawHeader() {
|
|||||||
|
|
||||||
bool cChannelColumn::readGrids() {
|
bool cChannelColumn::readGrids() {
|
||||||
#if VDRVERSNUM >= 20301
|
#if VDRVERSNUM >= 20301
|
||||||
|
const cSchedules* schedules;
|
||||||
|
{
|
||||||
LOCK_SCHEDULES_READ;
|
LOCK_SCHEDULES_READ;
|
||||||
const cSchedules* schedules = Schedules;
|
schedules = Schedules;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
schedules = cSchedules::Schedules(*schedulesLock);
|
schedules = cSchedules::Schedules(*schedulesLock);
|
||||||
#endif
|
#endif
|
||||||
@ -201,8 +204,11 @@ void cChannelColumn::AddNewGridsAtStart() {
|
|||||||
}
|
}
|
||||||
//if not, i have to add new ones to the list
|
//if not, i have to add new ones to the list
|
||||||
#if VDRVERSNUM >= 20301
|
#if VDRVERSNUM >= 20301
|
||||||
|
const cSchedules* schedules;
|
||||||
|
{
|
||||||
LOCK_SCHEDULES_READ;
|
LOCK_SCHEDULES_READ;
|
||||||
const cSchedules* schedules = Schedules;
|
schedules = Schedules;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
schedules = cSchedules::Schedules(*schedulesLock);
|
schedules = cSchedules::Schedules(*schedulesLock);
|
||||||
#endif
|
#endif
|
||||||
@ -254,8 +260,11 @@ void cChannelColumn::AddNewGridsAtEnd() {
|
|||||||
}
|
}
|
||||||
//if not, i have to add new ones to the list
|
//if not, i have to add new ones to the list
|
||||||
#if VDRVERSNUM >= 20301
|
#if VDRVERSNUM >= 20301
|
||||||
|
const cSchedules* schedules;
|
||||||
|
{
|
||||||
LOCK_SCHEDULES_READ;
|
LOCK_SCHEDULES_READ;
|
||||||
const cSchedules* schedules = Schedules;
|
schedules = Schedules;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
schedules = cSchedules::Schedules(*schedulesLock);
|
schedules = cSchedules::Schedules(*schedulesLock);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user