This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Posix C++ integration
- From: Aayush saxena <saxena dot aaaaaa123 at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Cc: bkoz at redhat dot com
- Date: Sun, 22 Mar 2009 00:07:18 +0530
- Subject: Posix C++ integration
Hi,
I am interested in Posix C++ integration. Does this suggested idea
incorporates the integration of standard C interface of Posix thread
library by encapsulating C structure into the C++ class? Some Posix
and C-language functions are non-reentrant with respect to threads so
I would like to propose the idea of making the C++ functions related
to Posix threads reentrant. But i have some doubt regarding this as
some functions are non-reentrant because they communicate across
multiple function invocations by maintaining state information in
static library-allocated storage, which is shared by all the threads
of a process, possibly without the benefit of synchronization. Some
other functions can be reentrant or non-reentrant depending upon there
arguments. So i would like to ask whether the idea of making C++
functions related to threads reentrant is feasible enough to be
proposed as a GSoC project?
Thanks and Regards,
Aayush Saxena