Skip to content

skyscraper/fp-rounding/src/rounding_guard: Force one per thread. #151

@recmo

Description

@recmo

On 2025-08-27 in d91b2f2 “Merge pull request #142 from worldfnd/sl/skyscraper-refactor”:

Force one per thread.

///
/// # Safety
///
/// This type is marked !Send + !Sync because FPCR is a per-core / per OS-thread
/// register.
// TODO: Force one per thread.
pub struct RoundingGuard<M: RoundingDirectionMarker> {
    previous: RoundingDirection,
    mode:     PhantomData<M>,
    _marker:  NotSendSync,
}

From skyscraper/fp-rounding/src/rounding_guard.rs:20

Metadata

Metadata

Assignees

No one assigned

    Labels

    to doTo do comments in codetracker🤖 issue managed by tracker bot

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions