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 if (vp != virtPort) { 318 delete vp->getPeer(); 319 delete vp; 320 } |
321} 322 323 324#endif 325 |