Changeset 13640 in vbox
- Timestamp:
- Oct 29, 2008 3:57:19 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 38571
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/slirp_state.h
r13623 r13640 65 65 int if_queued; 66 66 #ifdef VBOX_WITH_SYNC_SLIRP 67 /* mutex for accessing if_queued flag which used in if_start function and 68 * and understanding that we need call if_start to send anything we have to 69 * send. 70 */ 67 71 RTSEMMUTEX if_queued_mutex; 68 72 #endif … … 70 74 struct mbuf if_fastq; 71 75 #ifdef VBOX_WITH_SYNC_SLIRP 76 /* 77 * if_fastq_mutex prevent concurrent adding/removing mbufs on 78 * fast queue (mbufs) from this queue are processed in first order 79 */ 72 80 RTSEMMUTEX if_fastq_mutex; 73 81 #endif 74 82 struct mbuf if_batchq; 75 83 #ifdef VBOX_WITH_SYNC_SLIRP 84 /* 85 * if_batchq_mutex prevent concurent adding/removing mbufs on 86 * batch queue mbufs from this queue used if no mbufs on fast queue 87 * and next_m doesn't point on mbuf scheduled to be processesed 88 */ 76 89 RTSEMMUTEX if_batchq_mutex; 77 90 #endif 78 91 struct mbuf *next_m; 79 92 #ifdef VBOX_WITH_SYNC_SLIRP 93 /* 94 * next_m_mutex prevent concurrent assigning/reading 95 * from pointer next_m, used for pointing next mbuf to be processed 96 * it readed if no messages are not in fast queue, usually it assigned with 97 * mbuf from batch queue 98 */ 80 99 RTSEMMUTEX next_m_mutex; 81 100 #endif … … 89 108 int mbuf_alloced, mbuf_max; 90 109 #ifdef VBOX_WITH_SYNC_SLIRP 110 /* 111 * mbuf_alloced_mutex used to prevent concurent access to mbuf_alloced counter 112 * which ticks on every allocation and readed to check it against limits 113 */ 91 114 RTSEMMUTEX mbuf_alloced_mutex; 92 115 #endif … … 94 117 struct mbuf m_freelist, m_usedlist; 95 118 #ifdef VBOX_WITH_SYNC_SLIRP 119 /* 120 * m_freelist_mutex and m_usedlist_mutex are used to prevent concurrent access and modifications 121 * of corresponded queues controlling allocation/utilization of mbufs 122 */ 96 123 RTSEMMUTEX m_freelist_mutex; 97 124 RTSEMMUTEX m_usedlist_mutex; … … 121 148 tcp_seq tcp_iss; 122 149 #ifdef VBOX_WITH_SYNC_SLIRP 150 /* 151 * tcb_mutex used for control access to tcb queue of sockets 152 * servising TCP connections and tcp_last_so field 153 */ 123 154 RTSEMMUTEX tcb_mutex; 124 155 #endif … … 142 173 struct socket *udp_last_so; 143 174 #ifdef VBOX_WITH_SYNC_SLIRP 175 /* 176 * udb_mutex used in similar to tcb_mutex way, but for handling udp connections 177 */ 144 178 RTSEMMUTEX udb_mutex; 145 179 #endif
Note:
See TracChangeset
for help on using the changeset viewer.