Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Thread-safe mechanisms not fully implemented on non-Win32 #198

Closed

Description

@pow2clk

InterlockedIncrement and InterlockedDecrement are atomic operations to increment or decrement the value pointed to by the pointer parameter and return the same. Currently they are implemented as simple addition operations in WinMacros.h for non-win32 platforms which works well enough, but wasn't really the original intent.

InitializeCriticalSection, DeleteCriticalSection, EnterCriticalSection, and LeaveCriticalSection serve to create a mutual exclusion section of code, but they are also stubbed out currently.

There are already platform abstractions available to LLVM in Atomics.h and Mutex.h respectively. I propose we leverage them.

Activity

  1. ehsannas commented on May 19, 2018

    @ehsannas

    +1

  2. ehsannas commented on Jun 5, 2018

    @ehsannas

    @pow2clk is there any work left associated with this case?

  3. pow2clk commented on Jun 6, 2018

    @pow2clk
    Author

    Nope! I've finished everything I intended to with this.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions