VirtualBox

Changeset 13776 in vbox


Ignore:
Timestamp:
Nov 4, 2008 8:37:16 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
38757
Message:

loop edge checks in delayed deletion loops

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/slirp.c

    r13740 r13776  
    377377#else
    378378                while (1) {
     379                    tcp_loop_begin:
    379380                    if (so == &tcb) {
    380381                        VBOX_SLIRP_UNLOCK(pData->tcb_mutex);
     
    391392                        so = so_next;
    392393                        so_next = so->so_next;
     394                        if (so == &tcb) {
     395                            goto tcp_loop_begin;
     396                        }
    393397                        VBOX_SLIRP_LOCK(so->so_mutex);
    394398                    }
     
    578582#else
    579583                while (1) {
     584                    loop_begin:
    580585                    if (so == &tcb) {
    581586                        VBOX_SLIRP_UNLOCK(pData->tcb_mutex);
     
    594599                        so = so_next;
    595600                        so_next = so->so_next;
     601                        if (so == &tcb)
     602                            goto loop_begin;
    596603                        VBOX_SLIRP_LOCK(so->so_mutex);
    597604                    }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette