sync_queue missing include when setting BOOST_THREAD_DONT_PROVIDE_INTERRUPTIONS

Open
#397 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
cpp

Research direction

Start with boost/thread/concurrent_queues/detail/sync_queue_base.hpp and follow the include chain through boost/thread/sync_queue.hpp. Reproduce the compiler error from the linked Godbolt example with BOOST_THREAD_DONT_PROVIDE_INTERRUPTIONS enabled, then verify that the sync_queue code compiles and its relevant tests pass without the lock_guard error.

Written by the indexing model from the issue text.

Description

In file included from /opt/compiler-explorer/libs/boost_1_83_0/boost/thread/sync_queue.hpp:14:
In file included from /opt/compiler-explorer/libs/boost_1_83_0/boost/thread/concurrent_queues/sync_queue.hpp:15:
/opt/compiler-explorer/libs/boost_1_83_0/boost/thread/concurrent_queues/detail/sync_queue_base.hpp:74:23: error: no template named 'lock_guard'; did you mean 'std::lock_guard'?
   74 |     inline bool empty(lock_guard<mutex>& ) const BOOST_NOEXCEPT
      |                       ^

https://godbolt.org/z/185hWToY9

Dominant language
C++
Stars
213
Forks
171
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/thread

All issues in boostorg/thread

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.