Comments (4)
from container.
Basically it uses windows code because it doesn't see pthreads.
from container.
Sorry but the library does not support emscriptem and it's not tested in that platform.
It seems that Emscriptem wronly defines "_POSIX_THREADS " as -1, since POSIX defines that meaning quite well:
If a symbolic constant is defined with the value -1, the option is not supported. Headers, data types, and function interfaces required only for the option need not be supplied. An application that attempts to use anything associated only with the option is considered to be requiring an extension.
from container.
The _POSIX_THREADS
value on emscripten changes with -pthread
which is the official way to enable it.
https://emscripten.org/docs/porting/pthreads.html#compiling-with-pthreads-enabled
However, even cmake's
set(THREADS_PREFER_PTHREAD_FLAG 1)
find_package(Threads REQUIRED)
doesn't add the flag, so it has to be done explicitly.
The other point is that the (CMake) build behaviour is misleading: If it doesn't find POSIX threads, it immediately uses Windows code, even on non-Windows platforms. This leads to unexpected error messages which do not point to the lack of POSIX threads.
from container.
Related Issues (20)
- Support for VM based allocators/container storage
- End iterators are not dereferencable
- Ability to choose static_vector's size_type
- dtl vs std pair HOT 1
- Compiler specific header bug HOT 1
- small_vector<T> is misaligned on the stack in 32 bits HOT 2
- -Wstringop-overread emitted on simple boost small_vector code with gcc 12.3 HOT 3
- flat_multimap::emplace not sorting elements under GCC HOT 1
- flat_multimap::emplace not sorting elements under GCC HOT 6
- Modular Boost C++ Libraries Request HOT 1
- Support 'pure' (single pass) input_iterators HOT 1
- [1.85] flat_map/vector crashes on appends (memory corruption) HOT 6
- New container: chunked_vector HOT 1
- Compilation fails if custom key comparison is used HOT 1
- Provide a way to specify `deque` block size per container HOT 2
- small_vector cannot go back to use stack space HOT 1
- Several containers don't support non-movable types when move assigning
- As of boost 1.85, any key is found in any non-empty flat_multimap HOT 2
- C++23, libstdc++-14, clang++-17 : trivial flat_map::operator[] program fails to compile HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from container.