This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]