thread lockup when comiling with optimizations.

P

Patrick Stinson

I've added an extra thread to my application read from an alsa midi device,
and when I compile with any optimizations (gcc -O3 or gcc -O2) the
application "freezes" (meaning I don't know what code is still executing)
after the last of my threads (I have three, including the main thread).

This does not happen w/o optimizations.

Cheers
 
A

Andre Kostur

I've added an extra thread to my application read from an alsa midi
device, and when I compile with any optimizations (gcc -O3 or gcc -O2)
the application "freezes" (meaning I don't know what code is still
executing) after the last of my threads (I have three, including the
main thread).

This does not happen w/o optimizations.

You're in the wrong place. Comp.lang.c++ deals with Standard C++, which
has no concept of threading. Try in a newsgroup dedicated to your compiler
vendor and/or O/S platform.
 
V

Victor Bazarov

Patrick said:
I've added an extra thread to my application read from an alsa midi device,
and when I compile with any optimizations (gcc -O3 or gcc -O2) the
application "freezes" (meaning I don't know what code is still executing)
after the last of my threads (I have three, including the main thread).

This does not happen w/o optimizations.

Your issue cannot be resolved in terms of the standard C++ language. It
doesn't define threads, and optimisations are compiler-specific. Ask in
a newsgroup dedicated to your OS and/or your compiler.

V
 
P

Patrick Stinson

Andre said:
You're in the wrong place. Comp.lang.c++ deals with Standard C++, which
has no concept of threading. Try in a newsgroup dedicated to your
compiler vendor and/or O/S platform.


aww geeze, I should have known that, thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top