summaryrefslogtreecommitdiff
path: root/uisimulator/sdl/kernel.c
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/sdl/kernel.c')
-rw-r--r--uisimulator/sdl/kernel.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/uisimulator/sdl/kernel.c b/uisimulator/sdl/kernel.c
index ff6c94933b..e2aa0d31c4 100644
--- a/uisimulator/sdl/kernel.c
+++ b/uisimulator/sdl/kernel.c
@@ -159,6 +159,14 @@ void queue_wait(struct event_queue *q, struct event *ev)
159{ 159{
160 unsigned int rd; 160 unsigned int rd;
161 161
162#ifdef HAVE_EXTENDED_MESSAGING_AND_NAME
163 if (q->send && q->send->curr_sender)
164 {
165 /* auto-reply */
166 queue_release_sender(&q->send->curr_sender, 0);
167 }
168#endif
169
162 if (q->read == q->write) 170 if (q->read == q->write)
163 { 171 {
164 block_thread(&q->thread); 172 block_thread(&q->thread);
@@ -178,6 +186,14 @@ void queue_wait(struct event_queue *q, struct event *ev)
178 186
179void queue_wait_w_tmo(struct event_queue *q, struct event *ev, int ticks) 187void queue_wait_w_tmo(struct event_queue *q, struct event *ev, int ticks)
180{ 188{
189#ifdef HAVE_EXTENDED_MESSAGING_AND_NAME
190 if (q->send && q->send->curr_sender)
191 {
192 /* auto-reply */
193 queue_release_sender(&q->send->curr_sender, 0);
194 }
195#endif
196
181 if (q->read == q->write && ticks > 0) 197 if (q->read == q->write && ticks > 0)
182 { 198 {
183 block_thread_w_tmo(&q->thread, ticks); 199 block_thread_w_tmo(&q->thread, ticks);