Hi, all!
I am novice in this list, so don't beat freely :)
I confronted with a strange thing using boost.signals on SLES 9 SP3. I
don't shure Boost.signals bug, becase on FC4 and RHEL AS 3 all fine.
Test case:
--------------------- CUT HERE ------------------
#include
#include <iostream>
struct MySlot {
void operator() ()
{
std::cout << "YES!" << std::endl;
}
};
MySlot myslot;
boost::signal mysig;
int main()
{
mysig.connect(myslot);
return 0;
}
--------------------- CUT HERE ------------------
Compile and run:
c++ test.cc -o test -lboost_signals
./test
Programm will succesfully exit.
Compile and run:
c++ test.cc -o test -lboost_signals -pthread
./test
Programm will not exit never.
Boost version: 1.31.0 (from SuSE rpm)
GCC version: c++ (GCC) 3.3.3 (SuSE Linux)
I run this test on other SuSE boxes with same results. Any ideas?
P.S. I can't use GCC without '-pthread' because my program use threads...