What's New in Synchronization
Windows includes the following new programming elements for synchronization.
Windows 8
New Functions
-
Deletes a synchronization barrier.
-
Causes the calling thread to wait at a synchronization barrier until the maximum number of threads have entered the barrier.
-
Retrieves the results of an overlapped operation on the specified file, named pipe, or communications device within the specified time-out interval. The calling thread can perform an alertable wait.
-
Specifies the maximum number of threads and spin count for a new synchronization barrier.
-
Waits for the value at the specified address to change.
-
Wakes all threads that are waiting for the value of an address to change.
-
Wakes one thread that is waiting for the value of an address to change.
New Interlocked Functions
-
Performs an atomic addition operation on the specified LONG values. The operation is performed atomically, but without using memory barriers.
-
Performs an atomic addition operation on the specified LONGLONG values. The operation is performed atomically, but without using memory barriers.
-
Performs an atomic AND operation on the specified LONG values. The operation is performed atomically, but without using memory barriers.
-
Performs an atomic AND operation on the specified char values. The operation is performed atomically, but without using memory barriers.
-
Performs an atomic AND operation on the specified SHORT values. The operation is performed atomically, but without using memory barriers.
-
Performs an atomic AND operation on the specified LONGLONG values. The operation is performed atomically, but without using memory barriers.
-
Tests the specified bit of the specified LONG64 value and complements it. The operation is atomic.
-
Tests the specified bit of the specified LONG value and sets it to 0. The operation is atomic, and it is performed with acquire memory ordering semantics.
-
Tests the specified bit of the specified LONG value and sets it to 0. The operation is atomic, and it is performed using memory release semantics.
-
Tests the specified bit of the specified LONG value and sets it to 1. The operation is atomic, and it is performed with acquire memory ordering semantics.
-
Tests the specified bit of the specified LONG value and sets it to 1. The operation is atomic, and it is performed with release memory ordering semantics.
-
Performs an atomic compare-and-exchange operation on the specified values. The function compares two specified 32-bit values and exchanges with another 32-bit value based on the outcome of the comparison. The operation is performed atomically, but without using memory barriers.
-
Performs an atomic compare-and-exchange operation on the specified values. The function compares two specified 16-bit values and exchanges with another 16-bit value based on the outcome of the comparison.
-
Performs an atomic compare-and-exchange operation on the specified values. The function compares two specified 16-bit values and exchanges with another 16-bit value based on the outcome of the comparison. The operation is performed with acquire memory ordering semantics.
-
Performs an atomic compare-and-exchange operation on the specified values. The function compares two specified 16-bit values and exchanges with another 16-bit value based on the outcome of the comparison. The exchange is performed with release memory ordering semantics.
-
Performs an atomic compare-and-exchange operation on the specified values. The function compares two specified 16-bit values and exchanges with another 16-bit value based on the outcome of the comparison. The operation is performed atomically, but without using memory barriers.
-
Performs an atomic compare-and-exchange operation on the specified values. The function compares two specified 64-bit values and exchanges with another 64-bit value based on the outcome of the comparison. The operation is performed atomically, but without using memory barriers.
-
Performs an atomic compare-and-exchange operation on the specified values. The function compares two specified 128-bit values and exchanges with another 128-bit value based on the outcome of the comparison.
-
Performs an atomic compare-and-exchange operation on the specified values. The function compares two specified pointer values and exchanges with another pointer value based on the outcome of the comparison. The operation is performed atomically, but without using memory barriers.
-
Decrements (decreases by one) the value of the specified 32-bit variable as an atomic operation. The operation is performed atomically, but without using memory barriers.
-
Decrements (decreases by one) the value of the specified 16-bit variable as an atomic operation.
-
Decrements (decreases by one) the value of the specified 16-bit variable as an atomic operation. The operation is performed with acquire memory ordering semantics.
-
Decrements (decreases by one) the value of the specified 16-bit variable as an atomic operation. The operation is performed with release memory ordering semantics.
-
Decrements (decreases by one) the value of the specified 16-bit variable as an atomic operation. The operation is performed atomically, but without using memory barriers.
-
Decrements (decreases by one) the value of the specified 64-bit variable as an atomic operation. The operation is performed atomically, but without using memory barriers.
-
Sets a 64-bit variable to the specified value as an atomic operation. The operation is performed atomically, but without using memory barriers.
-
Sets an 8-bit variable to the specified value as an atomic operation.
-
Sets a 16-bit variable to the specified value as an atomic operation. The operation is performed using acquire memory ordering semantics.
-
Sets a 16-bit variable to the specified value as an atomic operation. The operation is performed atomically, but without using memory barriers.
-
Sets a 64-bit variable to the specified value as an atomic operation. The operation is performed atomically, but without using memory barriers.
-
Atomically exchanges a pair of addresses. The operation is performed atomically, but without using memory barriers.
-
Performs an atomic addition of two 32-bit values. The operation is performed atomically, but without using memory barriers.
-
Performs an atomic addition of two 64-bit values. The operation is performed atomically, but without using memory barriers.
-
Increments (increases by one) the value of the specified 32-bit variable as an atomic operation. The operation is performed atomically, but without using memory barriers.
-
Increments (increases by one) the value of the specified 16-bit variable as an atomic operation.
-
Increments (increases by one) the value of the specified 16-bit variable as an atomic operation. The operation is performed using acquire memory ordering semantics.
-
Increments (increases by one) the value of the specified 16-bit variable as an atomic operation. The operation is performed using release memory ordering semantics.
-
Increments (increases by one) the value of the specified 16-bit variable as an atomic operation. The operation is performed atomically, but without using memory barriers.
-
Increments (increases by one) the value of the specified 64-bit variable as an atomic operation. The operation is performed atomically, but without using memory barriers.
-
Performs an atomic OR operation on the specified LONG values. The operation is performed atomically, but without using memory barriers.
-
Performs an atomic OR operation on the specified char values. The operation is performed atomically, but without using memory barriers.
-
Performs an atomic OR operation on the specified SHORT values. The operation is performed atomically, but without using memory barriers.
-
Performs an atomic OR operation on the specified LONGLONG values. The operation is performed atomically, but without using memory barriers.
-
Inserts a singly-linked list at the front of another singly linked list. Access to the lists is synchronized on a multiprocessor system. This version of the method does not use the __fastcall calling convention.
-
Performs an atomic XOR operation on the specified LONG values. The operation is performed atomically, but without using memory barriers.
-
Performs an atomic XOR operation on the specified char values. The operation is performed atomically, but without using memory barriers.
-
Performs an atomic XOR operation on the specified SHORT values. The operation is performed atomically, but without using memory barriers.
-
Performs an atomic XOR operation on the specified LONGLONG values. The operation is performed atomically, but without using memory barriers.
Windows 7
New Functions
-
Activates the specified waitable timer and provides context information for the timer.
-
Attempts to acquire a slim reader/writer (SRW) lock in exclusive mode. If the call is successful, the calling thread takes ownership of the lock.
-
Attempts to acquire a slim reader/writer (SRW) lock in shared mode. If the call is successful, the calling thread takes ownership of the lock.
New Structures
-
Contains context information for a timer activated with SetWaitableTimerEx.