mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Removed delay_ms(), using cCondWait::SleepMs() instead
This commit is contained in:
parent
1d3495a0f0
commit
ce8369251c
1
HISTORY
1
HISTORY
@ -3221,3 +3221,4 @@ Video Disk Recorder Revision History
|
||||
itoa() -> cItoa
|
||||
WeekDayName() -> cWeekDayName
|
||||
DayDateTime() -> cDayDateTime
|
||||
- Removed delay_ms(), using cCondWait::SleepMs() instead.
|
||||
|
@ -36,3 +36,4 @@ VDR Plugin 'sky' Revision History
|
||||
2004-12-19: Version 0.3.3
|
||||
|
||||
- Made several functions threadsafe.
|
||||
- Removed delay_ms(), using cCondWait::SleepMs() instead.
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* See the README file for copyright information and how to reach the author.
|
||||
*
|
||||
* $Id: sky.c 1.9 2004/12/19 15:33:47 kls Exp $
|
||||
* $Id: sky.c 1.10 2004/12/19 17:21:52 kls Exp $
|
||||
*/
|
||||
|
||||
#include <sys/socket.h>
|
||||
@ -113,7 +113,7 @@ void cDigiboxDevice::LircSend(const char *s)
|
||||
dsyslog(buf);//XXX
|
||||
if (write(fd_lirc, buf, strlen(buf)) < 0)
|
||||
LOG_ERROR;//XXX _STR
|
||||
delay_ms(200);
|
||||
cCondWait::SleepMs(200);
|
||||
}
|
||||
|
||||
void cDigiboxDevice::LircSend(int n)
|
||||
|
4
rcu.c
4
rcu.c
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: rcu.c 1.6 2003/10/18 11:34:30 kls Exp $
|
||||
* $Id: rcu.c 1.7 2004/12/19 17:19:34 kls Exp $
|
||||
*/
|
||||
|
||||
#include "rcu.h"
|
||||
@ -295,7 +295,7 @@ bool cRcuRemote::DetectCode(unsigned char *Code)
|
||||
sprintf(buf, "C0D%c", *Code);
|
||||
String(buf);
|
||||
SetCode(*Code);
|
||||
delay_ms(2 * REPEATDELAY);
|
||||
cCondWait::SleepMs(2 * REPEATDELAY);
|
||||
if (receivedCommand) {
|
||||
SetMode(modeB);
|
||||
String("----");
|
||||
|
9
tools.c
9
tools.c
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: tools.c 1.83 2004/12/19 16:08:50 kls Exp $
|
||||
* $Id: tools.c 1.84 2004/12/19 17:19:46 kls Exp $
|
||||
*/
|
||||
|
||||
#include "tools.h"
|
||||
@ -199,13 +199,6 @@ int time_ms(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void delay_ms(int ms)
|
||||
{
|
||||
int t0 = time_ms();
|
||||
while (time_ms() - t0 < ms)
|
||||
;
|
||||
}
|
||||
|
||||
bool isnumber(const char *s)
|
||||
{
|
||||
if (!*s)
|
||||
|
3
tools.h
3
tools.h
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: tools.h 1.59 2004/12/19 14:49:48 kls Exp $
|
||||
* $Id: tools.h 1.60 2004/12/19 17:20:05 kls Exp $
|
||||
*/
|
||||
|
||||
#ifndef __TOOLS_H
|
||||
@ -72,7 +72,6 @@ bool endswith(const char *s, const char *p);
|
||||
bool isempty(const char *s);
|
||||
int numdigits(int n);
|
||||
int time_ms(void);
|
||||
void delay_ms(int ms);
|
||||
bool isnumber(const char *s);
|
||||
int FreeDiskSpaceMB(const char *Directory, int *UsedMB = NULL);
|
||||
bool DirectoryOk(const char *DirName, bool LogErrors = false);
|
||||
|
Loading…
Reference in New Issue
Block a user