mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-18 20:05:38 +08:00
Update to FreeBSD 9.3
This commit is contained in:
@@ -98,22 +98,15 @@ sctp_iterator_thread(void *v SCTP_UNUSED)
|
||||
void
|
||||
sctp_startup_iterator(void)
|
||||
{
|
||||
static int called = 0;
|
||||
int ret;
|
||||
|
||||
if (called) {
|
||||
if (sctp_it_ctl.thread_proc) {
|
||||
/* You only get one */
|
||||
return;
|
||||
}
|
||||
/* init the iterator head */
|
||||
called = 1;
|
||||
sctp_it_ctl.iterator_running = 0;
|
||||
sctp_it_ctl.iterator_flags = 0;
|
||||
sctp_it_ctl.cur_it = NULL;
|
||||
/* Initialize global locks here, thus only once. */
|
||||
SCTP_ITERATOR_LOCK_INIT();
|
||||
SCTP_IPI_ITERATOR_WQ_INIT();
|
||||
TAILQ_INIT(&sctp_it_ctl.iteratorhead);
|
||||
ret = kproc_create(sctp_iterator_thread,
|
||||
kproc_create(sctp_iterator_thread,
|
||||
(void *)NULL,
|
||||
&sctp_it_ctl.thread_proc,
|
||||
RFPROC,
|
||||
|
Reference in New Issue
Block a user