|
Boost Users : |
From: Pavel Syomin (syomin_at_[hidden])
Date: 2006-09-04 03:57:27
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 <boost/signal.hpp>
#include <iostream>
struct MySlot {
void operator() ()
{
std::cout << "YES!" << std::endl;
}
};
MySlot myslot;
boost::signal<void ()> 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...
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net