Changes in uspace/srv/net/tcp/rqueue.c [88a6819:69a93df7] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tcp/rqueue.c
r88a6819 r69a93df7 39 39 #include <io/log.h> 40 40 #include <stdlib.h> 41 #include < fibril.h>41 #include <thread.h> 42 42 #include "conn.h" 43 43 #include "pdu.h" … … 128 128 } 129 129 130 /** Receive queue handler fibril. */131 static int tcp_rqueue_fibril(void *arg)130 /** Receive queue handler thread. */ 131 static void tcp_rqueue_thread(void *arg) 132 132 { 133 133 link_t *link; 134 134 tcp_rqueue_entry_t *rqe; 135 135 136 log_msg(LVL_DEBUG, "tcp_rqueue_ fibril()");136 log_msg(LVL_DEBUG, "tcp_rqueue_thread()"); 137 137 138 138 while (true) { … … 142 142 tcp_as_segment_arrived(&rqe->sp, rqe->seg); 143 143 } 144 145 /* Not reached */146 return 0;147 144 } 148 145 149 /** Start receive queue handler fibril. */150 void tcp_rqueue_ fibril_start(void)146 /** Start receive queue handler thread. */ 147 void tcp_rqueue_thread_start(void) 151 148 { 152 fid_t fid; 149 thread_id_t tid; 150 int rc; 153 151 154 log_msg(LVL_DEBUG, "tcp_rqueue_ fibril_start()");152 log_msg(LVL_DEBUG, "tcp_rqueue_thread_start()"); 155 153 156 fid = fibril_create(tcp_rqueue_fibril, NULL);157 if ( fid == 0) {158 log_msg(LVL_ERROR, "Failed creating rqueue fibril.");154 rc = thread_create(tcp_rqueue_thread, NULL, "rqueue", &tid); 155 if (rc != EOK) { 156 log_msg(LVL_ERROR, "Failed creating rqueue thread."); 159 157 return; 160 158 } 161 162 fibril_add_ready(fid);163 159 } 164 160
Note:
See TracChangeset
for help on using the changeset viewer.