[rtems-libbsd commit] Update rtems_bsd_force_select_timeout()

Sebastian Huber sebh at rtems.org
Wed May 20 07:58:40 UTC 2015


Module:    rtems-libbsd
Branch:    master
Commit:    f2cb584a6191b642f19fb87bd39d37fbb7565283
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=f2cb584a6191b642f19fb87bd39d37fbb7565283

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Apr 30 10:59:30 2015 +0200

Update rtems_bsd_force_select_timeout()

---

 freebsd/sys/kern/sys_generic.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/freebsd/sys/kern/sys_generic.c b/freebsd/sys/kern/sys_generic.c
index 0ed027d..7c8bdcd 100644
--- a/freebsd/sys/kern/sys_generic.c
+++ b/freebsd/sys/kern/sys_generic.c
@@ -1900,7 +1900,6 @@ selectinit(void *dummy __unused)
 
 #include <rtems/score/objectimpl.h>
 #include <rtems/score/threadimpl.h>
-#include <rtems/score/threadqimpl.h>
 
 #include <rtems/bsd/util.h>
 
@@ -1912,9 +1911,7 @@ force_select_timeout(Thread_Control *thread)
 	if (td != NULL) {
 		struct seltd *stp = td->td_sel;
 
-		if (thread->Wait.queue == &stp->st_wait.cv_waiters) {
-			_Thread_queue_Process_timeout(thread);
-		}
+		cv_broadcastpri(&stp->st_wait, 0);
 	}
 }
 



More information about the vc mailing list