simple_thread.cc (2683:d6b72bb2ed97) simple_thread.cc (2684:71f3cabf891f)
1/*
2 * Copyright (c) 2001-2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 300 unchanged lines hidden (view full) ---

309 mem_port->setPeer(vp);
310 vp->setPeer(mem_port);
311 return vp;
312}
313
314void
315SimpleThread::delVirtPort(VirtualPort *vp)
316{
1/*
2 * Copyright (c) 2001-2006 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 300 unchanged lines hidden (view full) ---

309 mem_port->setPeer(vp);
310 vp->setPeer(mem_port);
311 return vp;
312}
313
314void
315SimpleThread::delVirtPort(VirtualPort *vp)
316{
317// assert(!vp->nullThreadContext());
318 delete vp->getPeer();
319 delete vp;
317 if (vp != virtPort) {
318 delete vp->getPeer();
319 delete vp;
320 }
320}
321
322
323#endif
324
321}
322
323
324#endif
325