This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: [PATCH] Move per_thread::set() def from fork.cc to perthread.h
- To: "Gary R. Van Sickle" <g dot r dot vansickle at worldnet dot att dot net>,<cygwin-patches at sourceware dot cygnus dot com>
- Subject: Re: [PATCH] Move per_thread::set() def from fork.cc to perthread.h
- From: "Robert Collins" <robert dot collins at itdomain dot com dot au>
- Date: Sun, 14 Oct 2001 23:41:18 +1000
- References: <NCBBIHCHBLCMLBLOBONKMEPFCGAA.g.r.vansickle@worldnet.att.net>
----- Original Message -----
From: "Gary R. Van Sickle" <g.r.vansickle@worldnet.att.net>
To: <cygwin-patches@sourceware.cygnus.com>
Sent: Sunday, October 14, 2001 11:22 PM
Subject: [PATCH] Move per_thread::set() def from fork.cc to perthread.h
> Sun Oct 14 08:10:12 2001 Gary R. Van Sickle
>
> * perthread.h (per_thread::set): Move per_thread::set()
> definition from fork.cc to perthread.h, where the rest of
> per_thread resides.
Why? I thought virtual functions could not inline, so there is no
potential performance benefit to putting the code in the header, and
headers usually do not have the actual implementation of the function
(barring inline functions).
Just my 2c,
Rob