Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10767: Regression of #10296 when address-model=32 in mingw
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-12-06 14:52:49
#10767: Regression of #10296 when address-model=32 in mingw
---------------------------------------+------------------------
Reporter: Brian Jack <gau_veldt@â¦> | Owner: ned14
Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
Version: Boost 1.57.0 | Severity: Regression
Resolution: | Keywords:
---------------------------------------+------------------------
Comment (by ned14):
The hello world example he posted appears to still rely on external files.
I reduced that to:
{{{
#include <windows.h>
#include <iostream>
#include <boost/thread.hpp>
boost::mutex cout_mutex;
class scoped_cout_lock {
std::ios state;
public:
scoped_cout_lock() : state(NULL) {
cout_mutex.lock();
state.copyfmt(std::cout);
}
virtual ~scoped_cout_lock() {
std::cout.flush();
std::cout.copyfmt(state);
cout_mutex.unlock();
}
};
#define LOCK_COUT {scoped_cout_lock __scl;
#define UNLOCK_COUT }
void test_thread() {
LOCK_COUT
std::cout << "Thread 2 says, \"Hello, World!\"" << std::endl;
UNLOCK_COUT
}
int main(int argc,char **argv) {
boost::thread test(test_thread);
LOCK_COUT
std::cout << "Thread 1 says, \"Hello, World!\"" << std::endl;
UNLOCK_COUT
test.join();
return 0;
}
}}}
I ran:
{{{
C:\Users\ned\Documents\boost-release>b2 toolset=gcc
libs/thread/test//test_10767
Performing configuration checks
- symlinks supported : no
- junctions supported : yes
- hardlinks supported : yes
...patience...
...patience...
...found 1424 targets...
...updating 23 targets...
common.mkdir bin.v2\libs\thread\test\test_10767.test
common.mkdir bin.v2\libs\thread\test\test_10767.test\gcc-mingw-4.8.1
common.mkdir bin.v2\libs\thread\test\test_10767.test\gcc-mingw-4.8.1\debug
common.mkdir bin.v2\libs\thread\test\test_10767.test\gcc-
mingw-4.8.1\debug\threa
ding-multi
gcc.compile.c++ bin.v2\libs\thread\test\test_10767.test\gcc-
mingw-4.8.1\debug\th
reading-multi\test_10767.o
libs\thread\test\test_10767.cpp:29:5: warning: unused parameter 'argc'
[-Wunused
-parameter]
int main(int argc,char **argv) {
^
libs\thread\test\test_10767.cpp:29:5: warning: unused parameter 'argv'
[-Wunused
-parameter]
gcc.compile.c++ bin.v2\libs\thread\test\test_10767.test\gcc-
mingw-4.8.1\debug\th
reading-multi\winrt_init.o
gcc.compile.c++ bin.v2\libs\thread\build\gcc-mingw-4.8.1\debug\threading-
multi\w
in32\thread.o
gcc.compile.c++ bin.v2\libs\thread\build\gcc-mingw-4.8.1\debug\threading-
multi\w
in32\tss_dll.o
gcc.compile.c++ bin.v2\libs\thread\build\gcc-mingw-4.8.1\debug\threading-
multi\w
in32\tss_pe.o
gcc.compile.c++ bin.v2\libs\thread\build\gcc-mingw-4.8.1\debug\threading-
multi\f
uture.o
gcc.compile.c++ bin.v2\libs\chrono\build\gcc-mingw-4.8.1\debug\threading-
multi\c
hrono.o
gcc.compile.c++ bin.v2\libs\chrono\build\gcc-mingw-4.8.1\debug\threading-
multi\t
hread_clock.o
gcc.compile.c++ bin.v2\libs\chrono\build\gcc-mingw-4.8.1\debug\threading-
multi\p
rocess_cpu_clocks.o
gcc.compile.c++ bin.v2\libs\system\build\gcc-mingw-4.8.1\debug\threading-
multi\e
rror_code.o
gcc.link.dll bin.v2\libs\system\build\gcc-mingw-4.8.1\debug\threading-
multi\libb
oost_system-mgw48-mt-d-1_57.dll.a
gcc.link.dll bin.v2\libs\chrono\build\gcc-mingw-4.8.1\debug\threading-
multi\libb
oost_chrono-mgw48-mt-d-1_57.dll.a
gcc.link.dll bin.v2\libs\thread\build\gcc-mingw-4.8.1\debug\threading-
multi\libb
oost_thread-mgw48-mt-d-1_57.dll.a
gcc.link bin.v2\libs\thread\test\test_10767.test\gcc-
mingw-4.8.1\debug\threading
-multi\test_10767.exe
testing.capture-output bin.v2\libs\thread\test\test_10767.test\gcc-
mingw-4.8.1\d
ebug\threading-multi\test_10767.run
1 file(s) copied.
**passed** bin.v2\libs\thread\test\test_10767.test\gcc-
mingw-4.8.1\debug\threadi
ng-multi\test_10767.test
...updated 23 targets...
}}}
Still looks fine to me.
Niall
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10767#comment:17> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC