diff options
author | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2008-02-11 10:28:03 +0000 |
---|---|---|
committer | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2008-02-11 10:28:03 +0000 |
commit | 26f59efe2c94581d822ce7a0a707a75035b7d046 (patch) | |
tree | c601628f4987284329e31436eee9f6ff6a043169 /recordmydesktop/src/rmdthreads.c | |
parent | d026b9ec4798582d21dab0f384fbe77b809b7567 (diff) |
src/get_frame.c: added calls to InitEventsPolling and
EventLoop. Now damage events are received and processed
synchronously, before each frame capture.
src/initialize_data.c: removed initalization of some removed
members (dual recy roots ahd their mutexes)
src/poll_events.c: Broken previous/ thread/func (PollEvents)
to InitEventsPolling and EventLoop, which are called from
GetFrame.
src/rmdthreads.c: removed initalization/end of poll_events
thread, as well as hack with extra window, to end that thread.
src/rmd_timer.c: time_cond is broadcasted ecery time now
(nnedeed with new changes)
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@490 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'recordmydesktop/src/rmdthreads.c')
-rw-r--r-- | recordmydesktop/src/rmdthreads.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/recordmydesktop/src/rmdthreads.c b/recordmydesktop/src/rmdthreads.c index a1b8e53..b1716cf 100644 --- a/recordmydesktop/src/rmdthreads.c +++ b/recordmydesktop/src/rmdthreads.c @@ -48,7 +48,6 @@ void rmdThreads(ProgData *pdata){ sound_cache_t, flush_to_ogg_t, timer_t; - Window dummy_w; if(pdata->args.delay>0){ fprintf(stderr,"Will sleep for %d seconds now.\n",pdata->args.delay); @@ -56,10 +55,6 @@ void rmdThreads(ProgData *pdata){ } /*start threads*/ - pthread_create(&poll_events_t, - NULL, - (void *)PollEvents, - (void *)pdata); pthread_create(&image_capture_t, NULL, (void *)GetFrame, @@ -157,30 +152,6 @@ void rmdThreads(ProgData *pdata){ pthread_join(flush_to_ogg_t,NULL); fprintf(stderr,"."); - /* - * HACK ALERT - * This window (dummy_w) is created - * only so that we will receive a final - * create notify event. This is needed - * especially for the full_shots mode were - * there are no damage events and the - * poll_events thread might get stuck indefinatelly. - * XFlush is also needed in order to get the event - * before the current thread gets stuck at the join call. - * The second XFlush should be unnecesary. - */ - - dummy_w=XCreateSimpleWindow(pdata->dpy, - pdata->specs.root, - 1,1,1,1,0, - pdata->specs.bpixel, - pdata->specs.wpixel); - XFlush(pdata->dpy); - XDestroyWindow(pdata->dpy,dummy_w); - XFlush(pdata->dpy); - - pthread_join(poll_events_t,NULL); - //Now that we are done with recording we cancel the timer pdata->timer_alive=0; pthread_join(timer_t,NULL); |