windows多线程同步参考
2010-10-06 15:53
176 查看
Synchronization Functions
See Also
Synchronization ReferenceThe following table shows the kernel synchronization functions.
Programming element | Description |
---|---|
CreateEvent | This function creates a named or an unnamed event object. |
CreateMutex | This function creates a named or unnamed mutex object. |
CreateSemaphore | This function creates a named or unnamed semaphore object. |
DeleteCriticalSection | This function releases all resources used by a critical section object that is not owned. |
DuplicateHandle | This function duplicates an object handle. The duplicate handle refers to the same object as the original handle. Therefore, any changes to the object are reflected through both handles. |
EnterCriticalSection | This function waits for ownership of the specified critical section object. |
InitializeCriticalSection | This function initializes a critical section object. |
InterlockedCompareExchange | This function performs an atomic comparison of the specified values and exchanges the values based on the outcome of the comparison. |
InterlockedCompareExchangePointer | This function performs an atomic comparison of the specified parameter values and exchanges the values based on the outcome of the comparison. |
InterlockedDecrement | This function both decrements (decreases by one) the value of the specified 32-bit variable and checks the resulting value. |
InterlockedExchange | This function atomically exchanges a pair of 32-bit values. |
InterlockedExchangeAdd | This function performs an atomic addition of an increment value to an Addend variable. |
InterlockedExchangePointer | This function atomically exchanges a pair of values. |
InterlockedIncrement | This function both increments (increases by one) the value of the specified 32-bit variable and checks the resulting value. |
InterlockedTestExchange | This function is an interlocked function that performs a conditional setting of a variable. |
LeaveCriticalSection | This function releases ownership of the specified critical section object. |
OpenEvent | This function opens an existing named event object. |
PulseEvent | This function provides a single operation that sets to signaled the state of the specified event object and then resets it to nonsignaled after releasing the appropriate number of waiting threads. |
ReleaseMutex | This function releases ownership of the specified mutex object. |
ReleaseSemaphore | This function increases the count of the specified semaphore object by a specified amount. |
ResetEvent | This function sets the state of the specified event object to nonsignaled. |
SetEvent | This function sets the state of the specified event object to signaled. |
TryEnterCriticalSection | This function attempts to enter a critical section without blocking. |
WaitForMultipleObjects | This function returns when either any one of the specified objects is in the signaled state, or the time-out interval elapses. |
WaitForSingleObject | This function returns when the specified object is in the signaled state or when the time-out interval elapses. |
See Also
Synchronization Reference相关文章推荐
- Windows性能参考指标
- windows DiskPart 磁盘分区命令工具参考
- windows多线程同步--事件
- windows样式(style)参考
- Windows Shell编程参考网址列表
- 使用Windows混音器MIXER的API开发音频控制面板【参考文章】
- windows多线程同步
- Windows SharePoint Services 3.0 通用参考中文版
- Windows 2008 R2 Sp1平台整合部署Ex2010与Lync Server 2010参考(三)v1.0
- Windows 7 - 命令行参考 - SET
- windows消息参考大全
- 基于windows 2012平台安装Lync Server 2013参考v1.0
- 白话windows多线程同步之关键段
- 【个人笔记重点,不作为参考】主题:windows批量修改文件后缀名
- 安装程序配置服务器失败。参考服务器错误日志和C:/WINDOWS/sqlstp.log
- 【WIN32之旅】WINDOWS错误处理与参考(四)
- 在Windows环境下,下载Android源代码(经过测试此方法仅能下载common,参考下载TortoiseGit办法)
- Windows、Mac环境下IDEA Maven配置和一些错误汇总(修正) tips:查找方便,仅作参考
- 安装程序配置服务器失败。参考服务器错误日志和 C:/WINDOWS/SQLSTP.LOG 了解更多信息