By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,768 Members | 1,895 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,768 IT Pros & Developers. It's quick & easy.

thread lockup when comiling with optimizations.

P: n/a
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
Jul 22 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Patrick Stinson wrote:
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
Jul 22 '05 #2

P: n/a
Patrick Stinson <pa*********@gci.net> wrote in
news:10*************@corp.supernews.com:
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.
Jul 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.