<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wayland/src/event-loop.c, branch master</title>
<subtitle>[no description]</subtitle>
<id>http://git.sudomsg.com/mirror/wayland/atom/src/event-loop.c?h=master</id>
<link rel='self' href='http://git.sudomsg.com/mirror/wayland/atom/src/event-loop.c?h=master'/>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/'/>
<updated>2020-01-21T11:31:35Z</updated>
<entry>
<title>event-loop: Track timer event sources in userspace</title>
<updated>2020-01-21T11:31:35Z</updated>
<author>
<name>Manuel Stoeckl</name>
<email>code@mstoeckl.com</email>
</author>
<published>2019-12-21T15:15:56Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=60a8d29ad8526c18cc670612e2c94f443873011a'/>
<id>urn:sha1:60a8d29ad8526c18cc670612e2c94f443873011a</id>
<content type='text'>
libwayland now uses only one file descriptor to keep track of all
the timer event sources associated with an event loop. An array-based
binary heap is used to determine which event source has the earliest
deadline.

(Previously, each timer event source had its own timerfd, making it easy
for the a process using many timer event sources to run out of file
descriptors.)

Signed-off-by: Manuel Stoeckl &lt;code@mstoeckl.com&gt;
</content>
</entry>
<entry>
<title>Use wl_container_of internally</title>
<updated>2019-06-05T09:58:14Z</updated>
<author>
<name>Michael Forney</name>
<email>mforney@mforney.org</email>
</author>
<published>2019-06-01T22:11:48Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=55d044810ca32ae24499d2c6aee6084d7e31d576'/>
<id>urn:sha1:55d044810ca32ae24499d2c6aee6084d7e31d576</id>
<content type='text'>
Rather than have two versions of the macro with slightly different
interfaces, just use wl_container_of internally.

This also removes use of statement expressions, a GNU C extension.

Signed-off-by: Michael Forney &lt;mforney@mforney.org&gt;
</content>
</entry>
<entry>
<title>log: remove "%m" from format strings by using strerror(errno)</title>
<updated>2019-05-02T20:14:53Z</updated>
<author>
<name>Antonio Borneo</name>
<email>borneo.antonio@gmail.com</email>
</author>
<published>2019-04-26T20:40:18Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=294ed97e646a41b7749cd67e240138fcab5bdc5a'/>
<id>urn:sha1:294ed97e646a41b7749cd67e240138fcab5bdc5a</id>
<content type='text'>
The printf() format specifier "%m" is a glibc extension to print
the string returned by strerror(errno). While supported by other
libraries (e.g. uClibc and musl), it is not widely portable.

In Wayland code the format string is often passed to a logging
function that calls other syscalls before the conversion of "%m"
takes place. If one of such syscall modifies the value in errno,
the conversion of "%m" will incorrectly report the error string
corresponding to the new value of errno.

Remove all the occurrences of the specifier "%m" in Wayland code
by using directly the string returned by strerror(errno).

Signed-off-by: Antonio Borneo &lt;borneo.antonio@gmail.com&gt;
</content>
</entry>
<entry>
<title>eventloop: clarify post_dispatch_check()</title>
<updated>2017-12-04T19:45:38Z</updated>
<author>
<name>Christopher James Halse Rogers</name>
<email>christopher.halse.rogers@canonical.com</email>
</author>
<published>2017-08-28T08:03:38Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=ed7ad31ac2fa3fb1aa03ed1435e6673b6b070f55'/>
<id>urn:sha1:ed7ad31ac2fa3fb1aa03ed1435e6673b6b070f55</id>
<content type='text'>
This *technically* changes the semantics of the return value of the source callbacks.
Previously you could return a negative number from a source callback and it would prevent
*other* source callbacks from triggering a subsequent recheck.

Doing that seems like such a bad idea it's not worth supporting.

v2: Log this case if it is hit, so we don't silently change behaviour.

Signed-off-by: Christopher James Halse Rogers &lt;christopher.halse.rogers@canonical.com&gt;
Reviewed-by: Daniel Stone &lt;daniels@collabora.com&gt;
</content>
</entry>
<entry>
<title>server: document wl_event_loop and wl_event_source</title>
<updated>2017-08-25T07:35:05Z</updated>
<author>
<name>Pekka Paalanen</name>
<email>pekka.paalanen@collabora.co.uk</email>
</author>
<published>2017-03-03T15:50:22Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=3ea73cba0446886632cd24442203fda47cb3c220'/>
<id>urn:sha1:3ea73cba0446886632cd24442203fda47cb3c220</id>
<content type='text'>
This documents all the public API related to wl_event_loop and
wl_event_source objects.

Signed-off-by: Pekka Paalanen &lt;pekka.paalanen@collabora.co.uk&gt;
Reviewed-by: Yong Bakos &lt;ybakos@humanoriented.com&gt;
[Pekka: fixed typos pointed by Yong]
[Pekka: fixed typos pointed by Christopher]
Reviewed-By: Christopher James Halse Rogers &lt;christopher.halse.rogers@canonical.com&gt;
</content>
</entry>
<entry>
<title>(multiple): Include stdint.h</title>
<updated>2016-07-26T01:39:32Z</updated>
<author>
<name>Yong Bakos</name>
<email>ybakos@humanoriented.com</email>
</author>
<published>2016-07-18T17:42:25Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=2b1c1b2d66945c5cb237a7264759b6dbdf42b02a'/>
<id>urn:sha1:2b1c1b2d66945c5cb237a7264759b6dbdf42b02a</id>
<content type='text'>
Some headers and source files have been using types such as uint32_t
without explicitly including stdint.h.

Explicitly include stdint.h where appropriate.

Signed-off-by: Yong Bakos &lt;ybakos@humanoriented.com&gt;
Reviewed-by: Eric Engestrom &lt;eric.engestrom@imgtec.com&gt;
</content>
</entry>
<entry>
<title>server-core, event-loop: Fix parameter alignment.</title>
<updated>2016-06-07T13:33:28Z</updated>
<author>
<name>Yong Bakos</name>
<email>ybakos@humanoriented.com</email>
</author>
<published>2016-05-24T23:10:17Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=e1f2ba2b37e79220baec4c1c229228734a344595'/>
<id>urn:sha1:e1f2ba2b37e79220baec4c1c229228734a344595</id>
<content type='text'>
Signed-off-by: Yong Bakos &lt;ybakos@humanoriented.com&gt;
Reviewed-by: Pekka Paalanen &lt;pekka.paalanen@collabora.co.uk&gt;
</content>
</entry>
<entry>
<title>event-loop: Include wayland-util.h</title>
<updated>2016-06-07T13:07:08Z</updated>
<author>
<name>Yong Bakos</name>
<email>ybakos@humanoriented.com</email>
</author>
<published>2016-05-21T04:23:58Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=fe31d2f9affae349728c6a328a9da77411160a49'/>
<id>urn:sha1:fe31d2f9affae349728c6a328a9da77411160a49</id>
<content type='text'>
event-loop.c uses WL_EXPORT and wl_list, which are defined in
wayland-util.h.

Include wayland-util.h explicitly, rather than transitively through
wayland-server-core.h.

Signed-off-by: Yong Bakos &lt;ybakos@humanoriented.com&gt;
Reviewed-by: Sam Spilsbury &lt;smspillaz@gmail.com&gt;
</content>
</entry>
<entry>
<title>event-loop: Make transitive include explicit</title>
<updated>2016-06-02T01:42:36Z</updated>
<author>
<name>Yong Bakos</name>
<email>ybakos@humanoriented.com</email>
</author>
<published>2016-05-16T18:05:39Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=972f1a2cf78a257a50edae58826e43835155adeb'/>
<id>urn:sha1:972f1a2cf78a257a50edae58826e43835155adeb</id>
<content type='text'>
The explicit inclusion of wayland-server.h hides the real dependency, which
is wayland-server-core.h.

Signed-off-by: Yong Bakos &lt;ybakos@humanoriented.com&gt;
Reviewed-by: Jonas Ådahl &lt;jadahl@gmail.com&gt;
</content>
</entry>
<entry>
<title>event-loop: remove extra header</title>
<updated>2015-11-16T19:42:01Z</updated>
<author>
<name>Marek Chalupa</name>
<email>mchqwerty@gmail.com</email>
</author>
<published>2015-11-16T10:53:36Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=10d5f97706f6228b607daebb90166752beb8fc77'/>
<id>urn:sha1:10d5f97706f6228b607daebb90166752beb8fc77</id>
<content type='text'>
we don't use assert() anywhere in this file, so remove #include &lt;assert.h&gt;

Signed-off-by: Marek Chalupa &lt;mchqwerty@gmail.com&gt;
Reviewed-by: Bryce Harrington &lt;bryce@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>cosmetic: gratuitous whitespace changes in event-loop.c</title>
<updated>2015-06-23T07:27:23Z</updated>
<author>
<name>Derek Foreman</name>
<email>derekf@osg.samsung.com</email>
</author>
<published>2015-06-18T16:48:30Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=ab254f7efe067176d2f2eda672b773b228f78e2d'/>
<id>urn:sha1:ab254f7efe067176d2f2eda672b773b228f78e2d</id>
<content type='text'>
Signed-off-by: Derek Foreman &lt;derekf@osg.samsung.com&gt;
Reviewed-by: Jon A. Cruz &lt;jonc@osg.samsung.com&gt;
Reviewed-by: Pekka Paalanen &lt;pekka.paalanen@collabora.co.uk&gt;
</content>
</entry>
<entry>
<title>src: Update boilerplate from MIT X11 license to MIT Expat license</title>
<updated>2015-06-12T22:31:24Z</updated>
<author>
<name>Bryce Harrington</name>
<email>bryce@osg.samsung.com</email>
</author>
<published>2015-06-10T17:54:15Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=3c91b0878def1a42c6d0090fa0b5a47df6092d7c'/>
<id>urn:sha1:3c91b0878def1a42c6d0090fa0b5a47df6092d7c</id>
<content type='text'>
Signed-off-by: Bryce Harrington &lt;bryce@osg.samsung.com&gt;
Reviewed-by: Pekka Paalanen &lt;pekka.paalanen@collabora.co.uk&gt;
</content>
</entry>
<entry>
<title>event-loop: Dispatch idle callbacks twice</title>
<updated>2015-01-29T02:12:31Z</updated>
<author>
<name>Derek Foreman</name>
<email>derekf@osg.samsung.com</email>
</author>
<published>2015-01-28T15:25:03Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=5ec8062df26f21cfe7a031eaf83a1b4d99085f36'/>
<id>urn:sha1:5ec8062df26f21cfe7a031eaf83a1b4d99085f36</id>
<content type='text'>
To fix a shutdown crash in weston's x11 compositor I want to move the
weston X window close to an idle handler.

Since idle handlers are processed at the start of an event loop, the
handler that deals with window close will run at the start of the
next input_loop dispatch, after which the dispatcher blocks on epoll
forever (since all input events that will ever occur have been consumed).

Dispatching idle callbacks both at the start and end of event-loop
processing will prevent this permanent blocking.

Note that just moving the callback dispatch could theoretically
result in an idle callback being delayed indefinitely while waiting
for epoll_wait() to complete.

Callbacks are removed from the list when they're run, so the second
dispatch won't result in any extra calls.

Signed-off-by: Derek Foreman &lt;derekf@osg.samsung.com&gt;
Reviewed-by: Giulio Camuffo &lt;giuliocamuffo@gmail.com&gt;
Reviewed-by: Bryce Harrington &lt;bryce@osg.samsung.com&gt;
</content>
</entry>
<entry>
<title>event-loop.c: Use correct OS abstraction function for dupfd()</title>
<updated>2014-11-05T12:17:25Z</updated>
<author>
<name>Philip Withnall</name>
<email>philip@tecnocode.co.uk</email>
</author>
<published>2014-11-01T17:06:38Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=b096693bef569ce463b5444ce654e62293978f8c'/>
<id>urn:sha1:b096693bef569ce463b5444ce654e62293978f8c</id>
<content type='text'>
Signed-off-by: Philip Withnall &lt;philip at tecnocode.co.uk&gt;
Signed-off-by: Karsten Otto &lt;ottoka at posteo.de&gt;
Reviewed-by: David Fort &lt;contact at hardening-consulting.com&gt;
Reviewed-by: Marek Chalupa &lt;mchqwerty@gmail.com&gt;
Reviewed-by: Pekka Paalanen &lt;pekka.paalanen@collabora.co.uk&gt;
</content>
</entry>
<entry>
<title>event-loop: make signalfd non-blocking</title>
<updated>2014-08-18T10:03:00Z</updated>
<author>
<name>Marek Chalupa</name>
<email>mchqwerty@gmail.com</email>
</author>
<published>2014-08-12T09:35:06Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=f2338c8f3beb069d3fa7e4ba0d56be1cc6e065f5'/>
<id>urn:sha1:f2338c8f3beb069d3fa7e4ba0d56be1cc6e065f5</id>
<content type='text'>
When we add more that one source to a signal, then wayland will
block in wl_event_loop_dispatch. This is due to the attampt to read
from signal's fd each time the source is dispatched.

  wl_event_loop_add_signal(loop, SIGINT, ...);
  wl_event_loop_add_signal(loop, SIGINT, ...);

  /* raise signal .. */

  /* we got two fd's ready, both for the one SIGINT */
  epoll_wait(...) = 2

  [ for (i == 0) ]
      source1-&gt;dispatch() --&gt; read(fd1);
  [ for (i == 1) ]
      source2-&gt;dispatch() --&gt; read(fd2); /* blocking! */

Reading from fd2 will block, because we got only one signal,
and it was read from fd1.

Signed-off-by: Marek Chalupa &lt;mchqwerty@gmail.com&gt;
Reviewed-by: Pekka Paalanen &lt;pekka.paalanen@collabora.co.uk&gt;
</content>
</entry>
<entry>
<title>Avoid printing to stderr</title>
<updated>2014-04-30T19:18:52Z</updated>
<author>
<name>Kristian Høgsberg</name>
<email>krh@bitplanet.net</email>
</author>
<published>2014-04-30T19:18:52Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=88f3bd84c8ea8f0b3526f970388ef76baa231fe2'/>
<id>urn:sha1:88f3bd84c8ea8f0b3526f970388ef76baa231fe2</id>
<content type='text'>
Use wl_log in the last few places where we print to stderr.  Remove
logging in a couple of places where we properly return an error code.

https://bugs.freedesktop.org/show_bug.cgi?id=73339
</content>
</entry>
<entry>
<title>Use non-blocking timerfd to prevent blocking when updating timer event sources</title>
<updated>2014-04-25T21:38:22Z</updated>
<author>
<name>Andrew Wedgbury</name>
<email>andrew.wedgbury@realvnc.com</email>
</author>
<published>2014-04-25T14:00:54Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=3e962728bf547de6316b5a01f40b38e55d3871cf'/>
<id>urn:sha1:3e962728bf547de6316b5a01f40b38e55d3871cf</id>
<content type='text'>
This implements a simple fix for the blocking problem that occurs when
updating a timer event source after the timer expires, but before its
callback is dispatched. This can happen when another event happens during the
same epoll wakeup as the timer event, and causes the read() call in
wl_event_source_timer_dispatch() to block for the updated duration of the
timer.

We never want this read() call to block, so I believe it makes sense for the
timerfd to be non-blocking, and we simply ignore the case where the read fails
with EAGAIN. We still report all other errors as before, and still ignore the
actual value read from the socket.

With this change, the event_loop_timer_updates unit test case I submitted
previously now passes, and weston appears to work as before.
</content>
</entry>
<entry>
<title>server: Make wl_object and wl_resource opaque structs</title>
<updated>2013-07-02T19:52:47Z</updated>
<author>
<name>Kristian Høgsberg</name>
<email>krh@bitplanet.net</email>
</author>
<published>2013-06-28T01:09:18Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=d94a8722cb29d8b897672be66ff3c9ff79eab6fe'/>
<id>urn:sha1:d94a8722cb29d8b897672be66ff3c9ff79eab6fe</id>
<content type='text'>
With the work to add wl_resource accessors and port weston to use them,
we're ready to make wl_resource and wl_object opaque structs.  We keep
wl_buffer in the header for EGL stacks to use, but don't expose it by
default.  In time we'll remove it completely, but for now it provides a
transition paths for code that still uses wl_buffer.

Reviewed-by: Jason Ekstrand&lt;jason@jlekstrand.net&gt;
</content>
</entry>
<entry>
<title>event-loop: fix returning the destroy-signal listener</title>
<updated>2013-01-24T21:14:33Z</updated>
<author>
<name>David Herrmann</name>
<email>dh.herrmann@googlemail.com</email>
</author>
<published>2013-01-23T13:11:19Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=142aa4a1197f6d4c8a7963dcc762e3d881d249fc'/>
<id>urn:sha1:142aa4a1197f6d4c8a7963dcc762e3d881d249fc</id>
<content type='text'>
We need to actually return the destroy-listener, otherwise the return
value is undefined.

Signed-off-by: David Herrmann &lt;dh.herrmann@googlemail.com&gt;
</content>
</entry>
<entry>
<title>Add a destroy signal to the wl_event_loop object</title>
<updated>2013-01-15T19:05:27Z</updated>
<author>
<name>Jason Ekstrand</name>
<email>jason@jlekstrand.net</email>
</author>
<published>2013-01-12T03:01:47Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=2423497b999c999528a7d2380a13fcb3e3412d0a'/>
<id>urn:sha1:2423497b999c999528a7d2380a13fcb3e3412d0a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move ARRAY_LENGTH out of public headers</title>
<updated>2012-10-19T21:08:38Z</updated>
<author>
<name>Kristian Høgsberg</name>
<email>krh@bitplanet.net</email>
</author>
<published>2012-10-19T21:08:38Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=bdd272f024744b4ed5ba6daedef7eb023bcac7cb'/>
<id>urn:sha1:bdd272f024744b4ed5ba6daedef7eb023bcac7cb</id>
<content type='text'>
Exporting unprefixed symbols is a pretty bad idea so don't do that.
Instea of redefining it WL_ARRAY_LENGTH, we just move the define to
our private header.  The scanner generates code that uses ARRAY_LENGTH,
but we can just make it count the number elements and emit an integer
constant instead.
</content>
</entry>
<entry>
<title>Change filedescriptor API to be thread safe</title>
<updated>2012-10-11T00:59:00Z</updated>
<author>
<name>Kristian Høgsberg</name>
<email>krh@bitplanet.net</email>
</author>
<published>2012-10-04T20:54:22Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=53d24713a31d59d9534c1c1a84a7ad46f44ee95f'/>
<id>urn:sha1:53d24713a31d59d9534c1c1a84a7ad46f44ee95f</id>
<content type='text'>
The update callback for the file descriptors was always a bit awkward and
un-intuitive.  The idea was that whenever the protocol code needed to
write data to the fd it would call the 'update' function.  This function
would adjust the mainloop so that it polls for POLLOUT on the fd so we
can eventually flush the data to the socket.

The problem is that in multi-threaded applications, any thread can issue
a request, which writes data to the output buffer and thus triggers the
update callback.  Thus, we'll be calling out with the display mutex
held and may call from any thread.

The solution is to eliminate the udpate callback and just require that
the application or server flushes all connection buffers before blocking.
This turns out to be a simpler API, although we now require clients to
deal with EAGAIN and non-blocking writes.  It also saves a few syscalls,
since the socket will be writable most of the time and most writes will
complete, so we avoid changing epoll to poll for POLLOUT, then write and
then change it back for each write.
</content>
</entry>
<entry>
<title>event-loop: export wl_event_loop_dispatch_idle()</title>
<updated>2012-09-12T16:28:54Z</updated>
<author>
<name>David Herrmann</name>
<email>dh.herrmann@googlemail.com</email>
</author>
<published>2012-09-11T14:09:34Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=003a946aa66333ac1cf927fc1498d85c2c9644f9'/>
<id>urn:sha1:003a946aa66333ac1cf927fc1498d85c2c9644f9</id>
<content type='text'>
When integrating the wayland event-loop into another event-loop, we
currently have no chance of checking whether there are pending idle
sources that have to be called. This patch exports the
"dispatch_idle_sources()" call so other event loops can call this before
going to sleep. This is what wl_event_loop_dispatch() currently does so we
simply allow external event-loops to do the same now.

To avoid breaking existing applications, we keep the call to
dispatch_idle_sources() in wl_event_loop_dispatch() for now. However, if
we want we can remove this later and require every application to call
this manually. This needs to be discussed, but the overhead is negligible
so we will probably leave it as it is.

This finally allows to fully integrate the wayland-server API into
existing event-loops without any nasty workarounds.

Signed-off-by: David Herrmann &lt;dh.herrmann@googlemail.com&gt;
</content>
</entry>
<entry>
<title>event-loop: remove dead code</title>
<updated>2012-09-11T01:28:34Z</updated>
<author>
<name>David Herrmann</name>
<email>dh.herrmann@googlemail.com</email>
</author>
<published>2012-09-08T15:47:15Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=397a0c6ada56e4330ebf2bc662010ca8d32a2c73'/>
<id>urn:sha1:397a0c6ada56e4330ebf2bc662010ca8d32a2c73</id>
<content type='text'>
There is really no need to increment "n" if we never read the value. The
do-while() loop overwrites the value before it is read the first time.

Signed-off-by: David Herrmann &lt;dh.herrmann@googlemail.com&gt;
</content>
</entry>
<entry>
<title>event-loop: Delete fd from epoll when removing event source</title>
<updated>2012-05-08T14:42:42Z</updated>
<author>
<name>Kristian Høgsberg</name>
<email>krh@bitplanet.net</email>
</author>
<published>2012-05-08T14:42:42Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=c49f632dae67ee3055e4874f028f723663486da6'/>
<id>urn:sha1:c49f632dae67ee3055e4874f028f723663486da6</id>
<content type='text'>
Closing an fd will remove it from the epoll set only if it hasn't been
dup'ed.  In other words, the fd is only removed from epoll when all file
descriptors referring to the open file has been close.  We now dup
fd for fd sources, so we need to use EPOLL_CTL_DEL directly now.
</content>
</entry>
<entry>
<title>event-loop: Consolidate code for setting up new sources</title>
<updated>2012-05-08T13:30:49Z</updated>
<author>
<name>Kristian Høgsberg</name>
<email>krh@bitplanet.net</email>
</author>
<published>2012-05-08T13:30:49Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=3e7bd7362b6841d1862de5af7b71f138b6d70a5d'/>
<id>urn:sha1:3e7bd7362b6841d1862de5af7b71f138b6d70a5d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>event-loop: fix conditional checking</title>
<updated>2012-05-08T13:08:57Z</updated>
<author>
<name>Tiago Vignatti</name>
<email>tiago.vignatti@intel.com</email>
</author>
<published>2012-05-08T11:58:02Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=a41fa8b3ec42f8f095ff6b53d30f20554b500c17'/>
<id>urn:sha1:a41fa8b3ec42f8f095ff6b53d30f20554b500c17</id>
<content type='text'>
Introduced in:
    commit 80f4f0d5127ebc8d5e35969a29691cf61a79997d
    Author: Jonas Ådahl &lt;jadahl@gmail.com&gt;
    Date:   Wed Mar 21 10:31:24 2012 +0100

Signed-off-by: Tiago Vignatti &lt;tiago.vignatti@intel.com&gt;
</content>
</entry>
<entry>
<title>os: wrap epoll_create</title>
<updated>2012-04-25T06:37:42Z</updated>
<author>
<name>Pekka Paalanen</name>
<email>ppaalanen@gmail.com</email>
</author>
<published>2012-03-22T13:02:05Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=b2eaf870cf8e8cb842ba29ea4718b596101252a6'/>
<id>urn:sha1:b2eaf870cf8e8cb842ba29ea4718b596101252a6</id>
<content type='text'>
Some system C libraries do not have epoll_create1() nor EPOLL_CLOEXEC,
provide a fallback.

Add tests for the wrapper.

Signed-off-by: Pekka Paalanen &lt;ppaalanen@gmail.com&gt;
</content>
</entry>
<entry>
<title>event-loop: Use two-step destruction of event loop sources.</title>
<updated>2012-03-21T14:30:19Z</updated>
<author>
<name>Jonas Ådahl</name>
<email>jadahl@gmail.com</email>
</author>
<published>2012-03-21T09:31:24Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=80f4f0d5127ebc8d5e35969a29691cf61a79997d'/>
<id>urn:sha1:80f4f0d5127ebc8d5e35969a29691cf61a79997d</id>
<content type='text'>
Instead of directly freeing an event source upon removal put it in a
queue later handled by the event loop; either after a dispatch or upon
event loop destruction.

This is necessary to avoid already queued up event sources to be freed
during some other dispatch callback, causing segmentation faults when
the event loop later tries to handle an event from the freed source.

Signed-off-by: Jonas Ådahl &lt;jadahl@gmail.com&gt;
</content>
</entry>
<entry>
<title>event-loop: always do the post-dispatch check</title>
<updated>2012-03-20T19:15:19Z</updated>
<author>
<name>Ander Conselvan de Oliveira</name>
<email>ander.conselvan.de.oliveira@intel.com</email>
</author>
<published>2012-03-13T11:16:13Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=3c5d9694db6f8bcbebc9a8d1ae3afd8e61530089'/>
<id>urn:sha1:3c5d9694db6f8bcbebc9a8d1ae3afd8e61530089</id>
<content type='text'>
The post-dispatch check on wl_event_loop_dispatch() was not being run
if epoll_wait returned 0 events, making the check unreliable.
</content>
</entry>
<entry>
<title>Fix WL_EVENT_WRITEABLE typo</title>
<updated>2011-12-29T03:51:34Z</updated>
<author>
<name>Kristian Høgsberg</name>
<email>krh@bitplanet.net</email>
</author>
<published>2011-12-29T03:47:37Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=d6465c5b402362c730c703f3f6dd5deddefec113'/>
<id>urn:sha1:d6465c5b402362c730c703f3f6dd5deddefec113</id>
<content type='text'>
</content>
</entry>
<entry>
<title>event-loop: Fix idle handler dispatch corner case</title>
<updated>2011-10-29T18:27:33Z</updated>
<author>
<name>Kristian Høgsberg</name>
<email>krh@bitplanet.net</email>
</author>
<published>2011-10-29T18:27:33Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=f86338d611305fb84187298cbab5dfc78a698c99'/>
<id>urn:sha1:f86338d611305fb84187298cbab5dfc78a698c99</id>
<content type='text'>
When the last idle handler queues another idle handler, we fail to
dispatch that last handler.  The wl_list_for_each_safe loop looks up
the next pointer before running the handler, and at that point it points
to the head of the list and the loop terminates.

Instead, just loop until the list is empty.
</content>
</entry>
<entry>
<title>event-loop: Quiet a few warnings</title>
<updated>2011-08-12T20:25:18Z</updated>
<author>
<name>Kristian Høgsberg</name>
<email>krh@bitplanet.net</email>
</author>
<published>2011-08-12T20:23:07Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=efeb9e977885c2df3426346ec45a913ff403af8d'/>
<id>urn:sha1:efeb9e977885c2df3426346ec45a913ff403af8d</id>
<content type='text'>
There's no good error recovery possible in these cases though.
</content>
</entry>
<entry>
<title>Rename source subdir from wayland to src</title>
<updated>2011-08-12T20:25:14Z</updated>
<author>
<name>Kristian Høgsberg</name>
<email>krh@bitplanet.net</email>
</author>
<published>2011-08-12T19:09:00Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=4c260db68c028f05401727d1911582ae8b87cd70'/>
<id>urn:sha1:4c260db68c028f05401727d1911582ae8b87cd70</id>
<content type='text'>
</content>
</entry>
</feed>
