From 86303ab2561c8f53ee41a7a71d673da2086f9833 Mon Sep 17 00:00:00 2001 From: iovar Date: Sun, 2 Dec 2007 09:07:24 +0000 Subject: include/rmdfunc.h: removed SetExpired & CancelTimer, added rmdTimer include/rmdtypes.h: pdata->timer_alive src/Makefile.am: added rmd_timer in sources src/rmd_timer.c: new thread that handles timing src/register_callbacks.c: removed SetExpired & CancelTimer src/rmdthreads.c: new timing setup(signal-sleep-loop thread, instead of setitimer &sigaction) git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@452 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- recordmydesktop/include/rmdfunc.h | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'recordmydesktop/include/rmdfunc.h') diff --git a/recordmydesktop/include/rmdfunc.h b/recordmydesktop/include/rmdfunc.h index dad87dd..f230287 100644 --- a/recordmydesktop/include/rmdfunc.h +++ b/recordmydesktop/include/rmdfunc.h @@ -43,6 +43,16 @@ */ void *PollEvents(ProgData *pdata); +/** +* Loop ,signal timer cond var,sleep-\ +* ^ | +* |________________________________/ +* +* +* \param pdata ProgData struct containing all program data +*/ +void *rmdTimer(ProgData *pdata); + /** * Retrieve frame form xserver, and transform to a yuv buffer, * either directly(full shots) or by calling UpdateImage. @@ -113,13 +123,6 @@ int CollideRects(WGeometry *wgeom1, WGeometry **wgeom_return, int *ngeoms); -/** -* Broadcast time condition variable, increment frame count. -* -* \param signum Number of signal received(unused, always SIGALRM) -* -*/ -void SetExpired(int signum); /** * Set up all callbacks and signal handlers @@ -445,10 +448,6 @@ void *LoadCache(ProgData *pdata); */ void SyncEncodeImageBuffer(ProgData *pdata); -/** -* Stop the timer -*/ -void CancelTimer(void); /** * As EncodeSoundBuffer, only with the assumption that @@ -791,6 +790,9 @@ void rmdDrawFrame(Display *dpy, Window win, int width, int height); + + + #endif -- cgit v1.2.3