Title: | C++ |
Notice: | Read 1.* and use keywords (e.g. SHOW KEY/FULL KIT_CXX_VAX_VMS) |
Moderator: | DECCXX::AMARTIN |
Created: | Fri Nov 06 1987 |
Last Modified: | Thu Jun 05 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 3604 |
Total number of notes: | 18242 |
I understand it's not safe to use malloc within a signal handler but is it safe to use new within a signal handler? Thanks, Stuart. Environment: Digital Unix V3.2D
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
3588.1 | No! | AUSS::BELL | Caritas Patiens est | Mon May 26 1997 21:54 | 4 |
The default implementation of 'new' calls 'malloc'. Peter. | |||||
3588.2 | non malloc new? | CHEFS::DAVIDSONS | Tue May 27 1997 16:26 | 6 | |
Thanks. Does that imply that there's a version of new which would be safe to use in a signal handler? Stuart. | |||||
3588.3 | Not offhand | DECCXX::AMARTIN | Alan H. Martin | Tue May 27 1997 17:36 | 7 |
Re .2: > Does that imply that there's a version of new which would be safe > to use in a signal handler? Not unless you've written a version of new yourself which is designed to work. /AHM | |||||
3588.4 | Thanks | CHEFS::DAVIDSONS | Wed May 28 1997 17:14 | 1 | |