Skip to content

Revise pthread_condattr_setclock on Android #58737

@MichalStrehovsky

Description

@MichalStrehovsky

See #58701 (comment)


We can likely use pthread_condattr_setclock on Android in NDK r21. Also our minimum supported ios version is now greater than the version that didn't support CLOCK_MONOTONIC.

So we can likely change the ifdef around BROKEN_CLOCK_SOURCE to exclude ios and Android

#if !defined(CLOCK_MONOTONIC) || defined(HOST_DARWIN) || defined(HOST_ANDROID) || defined(HOST_WASM)
#define BROKEN_CLOCK_SOURCE
#endif

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions