Skip to content

implement new low-level and high-level mutexes and condition variables #18003

Closed
@thestinger

Description

@thestinger

This should be a pair of types built directly on the platform primitives. On Windows, it should directly wrap CRITICAL_SECTION and CONDITION_VARIABLE while on *nix it would wrap pthread_mutex_t and pthread_cond_t. It can then be wrapped into a new high-level safe API.

C++11 also exposes a portable recursive mutex, which would be an easy addition. It could allow expose adaptive mutexes (faster, at the expense of fairness) when available since falling back to normal mutexes is a portable implementation.

Metadata

Metadata

Assignees

Labels

C-enhancementCategory: An issue proposing an enhancement or a PR with one.I-slowIssue: Problems and improvements with respect to performance of generated code.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions