simple_thread.cc (3675:dc883b610345) | simple_thread.cc (4217:4c966fec2324) |
---|---|
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; --- 291 unchanged lines hidden (view full) --- 300 connectToMemFunc(vp); 301 return vp; 302} 303 304void 305SimpleThread::delVirtPort(VirtualPort *vp) 306{ 307 if (vp != virtPort) { | 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; --- 291 unchanged lines hidden (view full) --- 300 connectToMemFunc(vp); 301 return vp; 302} 303 304void 305SimpleThread::delVirtPort(VirtualPort *vp) 306{ 307 if (vp != virtPort) { |
308 delete vp->getPeer(); | 308 vp->removeConn(); |
309 delete vp; 310 } 311} 312 313#endif 314 | 309 delete vp; 310 } 311} 312 313#endif 314 |