Threads and exceptions
Momchil Velikov
velco@fadata.bg
Wed Apr 10 05:35:00 GMT 2002
>>>>> "Robert" == Robert Osowiecki <robson@cavern.pl> writes:
>> OK. I don't need to throw an exception between threads (and never
>> supposed that to work). But how can I check if g++ included with my
>> distribution is or is not already compiled with --enable-theads?
Robert> I've just throwed and immediately catched an exception inside thread
Robert> function.
Robert> Is it enough to be sure?
You can, e.g.
$ sh-elf-gcc -v
Reading specs from /gnu-pth/lib/gcc-lib/sh-elf/3.0.3/specs
Configured with: /home/velco/src/gcc-3.0.3/configure --prefix=/gnu-pth --target=sh-elf --enable-languages=c,c++ --enable-threads=posix
Thread model: posix
gcc version 3.0.3
Without threads is says "Thread model: none" or "single".
More information about the Gcc-help
mailing list