Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

concurrent_hash_map tests fail to compile with newset (2021) tbb #990

Open

Description

@igchor

ISSUE: concurrent_hash_map tests fail to compile with newset (2021) tbb

Environment Information

  • libpmemobj-cpp version(s): master
  • PMDK (libpmemobj) package version(s):
  • OS(es) version(s):
  • kernel version(s):
  • compiler, libraries, packaging and other related tools version(s):

and possibly:

  • TBB version(s): 2021
  • ndctl version(s):

Please provide a reproduction of the bug:

make

How often bug is revealed:

always

Details

In tbb 2021 name of some protected members in tbb:spin_rw_mutex::scoped_locke were change (is_write -> m_is_write). Since we use them in concurrent_hash_map in tests with tbb there is a compilation error.

Additional information about Priority and Help Requested:

Are you willing to submit a pull request with a proposed change? (Yes, No)

Requested priority: (Showstopper, High, Medium, Low)

Activity

  1. pbalcer commented on Dec 7, 2020

    @pbalcer
    Member

    ideally, you'd remove the dependency on internal variables entirely since the alternative approach would be to include a compile-time version check.

  2. igchor commented on Dec 7, 2020

    @igchor
    ContributorAuthor

    Yes, tbb should expose a public interface to query for the information we need (whether the lock is in read or write mode).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions