[#3772] All signal handlers and thread functions should be extern "C"

Please log in

State: more information
Open
Date:
2009-05-29 19:57
Priority: more information
3
Submitted By:
Torsten Rohlfing (torstenrohlfing)
Assigned To: more information
Torsten Rohlfing (torstenrohlfing)
Hardware: 
All
Product: 
CMTK-core
Operating System: 
All
Component: 
None
Version: 
svn/trunk
Severity: 
minor
Resolution: 
Accepted As Bug
Summary: more information
All signal handlers and thread functions should be extern "C"

Detailed description

This requires all such functions, which are all static member functions, to be
taken out of their classes and defined as "normal" standalone functions.

For now, we haven't seen a platform where the use of member functions with the resulting C++ name mangling is a problem, but supposedly there could be issues in theory.

Response

Message

Date: 2009-11-17 15:47
Sender: Torsten Rohlfing

As of SVN815 all signal handlers are 'extern "C"'


Date: 2009-10-13 13:30
Sender: Torsten Rohlfing

In SVN576, we introduce a new thread framework based on a pool of threads that is continuously running and executes worker functions. Because the worker functions are decoupled from the actual thread function (there is only one now), this effectively solves this issue in terms of thread functions.

Note that it will be a while before (if ever) all current thread functions have been migrated to the new framework. Mostly this change applies to newly written parallel code.

No change for signal handlers yet.

Attached Files:

Name Download
No Files Currently Attached

Changes:

Field Old Value Date By
summaryAll signal handlers and thread functions should be extern "C"2009-11-17 15:47torstenrohlfing
summaryAll signal handlers and thread functions should be extern "C"2009-10-13 13:30torstenrohlfing