summaryrefslogtreecommitdiffstats
path: root/src/pulse/mainloop.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove unnecessary #includesMaarten Bosmans2011-06-221-2/+0
|
* Fix pa_rtclock_from_wallclockMaarten Bosmans2011-03-191-9/+14
| | | | | | | | The HAVE_CLOCK_GETTIME macro protects timespec and related functions, nothing of which is used in pa_rtclock_from_wallclock. And silently just not converting was not the proper solution anyway. Also add an assert in pulse/mainloop.c to report the integer overflow that was triggered by the wrong pa_rtclock_from_wallclock. Without the assert, debugging was painful.
* Use <pulsecore/socket.h> instead of <sys/socket.h>Maarten Bosmans2011-02-171-1/+1
| | | | | | | | The check whether POSIX socket.h or WIN32 winsock2.h must be included can be made centrally. The downside is that some functionality of e.g. arpa/inet.h is also implemented in winsock.h, so that some files that don't use socket functions, but do use inet.h functions, must also include pulsecore/socket.h. (as well as arpa/inet.h)
* poll() is totally broken on Mac OS XDaniel Mack2009-12-161-7/+2
| | | | | | Even on 10.5.8, poll() does not do the right thing. Haven't checked on newer versions. Hence, wrap all occurences of poll() to pa_poll and emulate that call with select() on OSX. This is totally embarassing.
* use cloexec wrappers wherever applicableLennart Poettering2009-10-301-3/+1
|
* mainloop: fix detection of rt clocksLennart Poettering2009-09-181-8/+7
|
* mainloop: pass monotonic times back to user if he passed monotonic times to usLennart Poettering2009-09-181-6/+16
|
* mainloop: sum up dispatched events in an unsigned to clarify rangeLennart Poettering2009-09-181-8/+9
|
* mainloop: use PA_LLIST_FOREACH macros where applicableLennart Poettering2009-09-181-26/+30
|
* mainloop: don't initialize fields we don't have toLennart Poettering2009-09-181-30/+4
|
* mainloop: calculate in pa_usec_t everywhereLennart Poettering2009-09-181-21/+46
|
* mainloop: properly convert time to wallclock time when handing it to the userLennart Poettering2009-09-181-1/+1
|
* Correctly deal with events in the past in calc_next_timeoutMaxim Levitsky2009-08-101-7/+6
| | | | | | | | pa_usec_t is unsigned, thus it will always be >= 0 This makes gstreamer pulse mixer work again This fixes a gstreamer mixer regression, when it can't control the volume, after few changes.
* rtclock: enable rtclock for our own mainloop implementationsLennart Poettering2009-06-221-4/+11
|
* rtclock: fix issues found by LennartMarc-André Lureau2009-06-201-9/+11
|
* Base mainloop on pa_rtclock_now()Marc-André Lureau2009-06-201-23/+48
| | | | | | | | | | | | | | | | Move the mainloop to monotonic based time events. Introduces 4 helper functions: pa_{context,core}_rttime_{new,restart}(), that fill correctly a timeval with the rtclock flag set if the mainloop supports it. Both mainloop-test and mainloop-test-glib works with rt and timeval based time events. PulseAudio and clients should be fully functional. This patch has received several iterations, and this one as been largely untested. Signed-off-by: Marc-André Lureau <marca-andre.lureau@nokia.com>
* Use LGPL 2.1 on all files previously using LGPL 2Colin Guthrie2009-03-031-1/+1
|
* add a few more gcc warning flags and fix quite a few problems found by doing soLennart Poettering2008-08-191-45/+48
|
* add i18n supportLennart Poettering2008-08-061-0/+3
|
* get rid of svn $ keywordsLennart Poettering2008-06-181-2/+0
|
* merge 'lennart' branch back into trunk.Lennart Poettering2007-10-281-85/+88
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1971 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Add copyright notices to all relevant files. (based on svn log)Pierre Ossman2007-02-131-0/+3
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1426 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Huge trailing whitespace cleanup. Let's keep the tree pure from here on,Pierre Ossman2007-01-041-48/+48
| | | | | | | mmmkay? git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1418 fefdeb5f-60dc-0310-8127-8f9354f1896f
* remove all occurences of Lennart Poettering2006-08-181-3/+3
| | | | | | | | | | | | pa_logXXX(__FILE__": and replace them by pa_logXXX(" git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1272 fefdeb5f-60dc-0310-8127-8f9354f1896f
* remove superfluous codeLennart Poettering2006-07-271-43/+0
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1155 fefdeb5f-60dc-0310-8127-8f9354f1896f
* remove two superfluous linesLennart Poettering2006-07-261-3/+0
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1154 fefdeb5f-60dc-0310-8127-8f9354f1896f
* mainloop fixes: when disabling time events when dispatching them, make sure ↵Lennart Poettering2006-07-261-1/+6
| | | | | | to adjust the cache time event and enabled time event counters git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1153 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Results of profiling PulseAudio with valgrind's callgrind module: rework the ↵Lennart Poettering2006-07-251-194/+353
| | | | | | default event loop implementation to use PA_LLIST_xxx instead of pa_idxset; don't generate weakeup events if we aren't in STATE_POLLING; minimize dispatching of io events; cache next time event instead of traversing the list of time events on every event loop iteration; other optimizations git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1148 fefdeb5f-60dc-0310-8127-8f9354f1896f
* try to use send(,,MSG_NOSIGNAL) instead of write() wherever possible (whichLennart Poettering2006-07-141-2/+4
| | | | | | | | | | will allow us to drop the SIGPIPE check). Cache the results of the last write()/send() to make sure that we do not issue more than necessary system calls. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1083 fefdeb5f-60dc-0310-8127-8f9354f1896f
* big s/polyp/pulse/gLennart Poettering2006-06-191-0/+839
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1033 fefdeb5f-60dc-0310-8127-8f9354f1896f