实例介绍
使用VS2010编译,window下使用的pthread静态库。 采用最新的源代码进行编译,包含有测试和pthread工程, 可以自己重新编译。
【实例截图】
【核心代码】
16359647522872555671.rar
├── pthread.h
├── pthread.lib
├── pthreads.2
│ ├── ANNOUNCE
│ ├── attr.c
│ ├── autostatic.c
│ ├── barrier.c
│ ├── Bmakefile
│ ├── BUGS
│ ├── builddmc.bat
│ ├── cancel.c
│ ├── ChangeLog
│ ├── cleanup.c
│ ├── condvar.c
│ ├── config.h
│ ├── context.h
│ ├── CONTRIBUTORS
│ ├── COPYING
│ ├── COPYING.LIB
│ ├── create.c
│ ├── dll.c
│ ├── errno.c
│ ├── exit.c
│ ├── FAQ
│ ├── fork.c
│ ├── global.c
│ ├── GNUmakefile
│ ├── implement.h
│ ├── MAINTAINERS
│ ├── Makefile
│ ├── misc.c
│ ├── mutex.c
│ ├── need_errno.h
│ ├── NEWS
│ ├── Nmakefile
│ ├── Nmakefile.tests
│ ├── nonportable.c
│ ├── private.c
│ ├── PROGRESS
│ ├── pthread_attr_destroy.c
│ ├── pthread_attr_getdetachstate.c
│ ├── pthread_attr_getinheritsched.c
│ ├── pthread_attr_getschedparam.c
│ ├── pthread_attr_getschedpolicy.c
│ ├── pthread_attr_getscope.c
│ ├── pthread_attr_getstackaddr.c
│ ├── pthread_attr_getstacksize.c
│ ├── pthread_attr_init.c
│ ├── pthread_attr_setdetachstate.c
│ ├── pthread_attr_setinheritsched.c
│ ├── pthread_attr_setschedparam.c
│ ├── pthread_attr_setschedpolicy.c
│ ├── pthread_attr_setscope.c
│ ├── pthread_attr_setstackaddr.c
│ ├── pthread_attr_setstacksize.c
│ ├── pthread_barrierattr_destroy.c
│ ├── pthread_barrierattr_getpshared.c
│ ├── pthread_barrierattr_init.c
│ ├── pthread_barrierattr_setpshared.c
│ ├── pthread_barrier_destroy.c
│ ├── pthread_barrier_init.c
│ ├── pthread_barrier_wait.c
│ ├── pthread.c
│ ├── pthread_cancel.c
│ ├── pthread_condattr_destroy.c
│ ├── pthread_condattr_getpshared.c
│ ├── pthread_condattr_init.c
│ ├── pthread_condattr_setpshared.c
│ ├── pthread_cond_destroy.c
│ ├── pthread_cond_init.c
│ ├── pthread_cond_signal.c
│ ├── pthread_cond_wait.c
│ ├── pthread_delay_np.c
│ ├── pthread_detach.c
│ ├── pthread_equal.c
│ ├── pthread_exit.c
│ ├── pthread_getconcurrency.c
│ ├── pthread_getschedparam.c
│ ├── pthread_getspecific.c
│ ├── pthread_getunique_np.c
│ ├── pthread_getw32threadhandle_np.c
│ ├── pthread.h
│ ├── pthread_join.c
│ ├── pthread_key_create.c
│ ├── pthread_key_delete.c
│ ├── pthread_kill.c
│ ├── pthread_mutexattr_destroy.c
│ ├── pthread_mutexattr_getkind_np.c
│ ├── pthread_mutexattr_getpshared.c
│ ├── pthread_mutexattr_getrobust.c
│ ├── pthread_mutexattr_gettype.c
│ ├── pthread_mutexattr_init.c
│ ├── pthread_mutexattr_setkind_np.c
│ ├── pthread_mutexattr_setpshared.c
│ ├── pthread_mutexattr_setrobust.c
│ ├── pthread_mutexattr_settype.c
│ ├── pthread_mutex_consistent.c
│ ├── pthread_mutex_destroy.c
│ ├── pthread_mutex_init.c
│ ├── pthread_mutex_lock.c
│ ├── pthread_mutex_timedlock.c
│ ├── pthread_mutex_trylock.c
│ ├── pthread_mutex_unlock.c
│ ├── pthread_num_processors_np.c
│ ├── pthread_once.c
│ ├── pthread_rwlockattr_destroy.c
│ ├── pthread_rwlockattr_getpshared.c
│ ├── pthread_rwlockattr_init.c
│ ├── pthread_rwlockattr_setpshared.c
│ ├── pthread_rwlock_destroy.c
│ ├── pthread_rwlock_init.c
│ ├── pthread_rwlock_rdlock.c
│ ├── pthread_rwlock_timedrdlock.c
│ ├── pthread_rwlock_timedwrlock.c
│ ├── pthread_rwlock_tryrdlock.c
│ ├── pthread_rwlock_trywrlock.c
│ ├── pthread_rwlock_unlock.c
│ ├── pthread_rwlock_wrlock.c
│ ├── pthread_self.c
│ ├── pthread_setcancelstate.c
│ ├── pthread_setcanceltype.c
│ ├── pthread_setconcurrency.c
│ ├── pthread_setschedparam.c
│ ├── pthread_setspecific.c
│ ├── pthread_spin_destroy.c
│ ├── pthread_spin_init.c
│ ├── pthread_spin_lock.c
│ ├── pthread_spin_trylock.c
│ ├── pthread_spin_unlock.c
│ ├── pthread.suo
│ ├── pthread_testcancel.c
│ ├── pthread_timechange_handler_np.c
│ ├── pthread.vcxproj
│ ├── pthread.vcxproj.filters
│ ├── pthread.vcxproj.user
│ ├── pthread_win32_attach_detach_np.c
│ ├── ptw32_calloc.c
│ ├── ptw32_callUserDestroyRoutines.c
│ ├── ptw32_cond_check_need_init.c
│ ├── ptw32_getprocessors.c
│ ├── ptw32_is_attr.c
│ ├── ptw32_MCS_lock.c
│ ├── ptw32_mutex_check_need_init.c
│ ├── ptw32_new.c
│ ├── ptw32_OLL_lock.c
│ ├── ptw32_processInitialize.c
│ ├── ptw32_processTerminate.c
│ ├── ptw32_relmillisecs.c
│ ├── ptw32_reuse.c
│ ├── ptw32_rwlock_cancelwrwait.c
│ ├── ptw32_rwlock_check_need_init.c
│ ├── ptw32_semwait.c
│ ├── ptw32_spinlock_check_need_init.c
│ ├── ptw32_threadDestroy.c
│ ├── ptw32_threadStart.c
│ ├── ptw32_throw.c
│ ├── ptw32_timespec.c
│ ├── ptw32_tkAssocCreate.c
│ ├── ptw32_tkAssocDestroy.c
│ ├── README
│ ├── README.Borland
│ ├── README.CV
│ ├── README.NONPORTABLE
│ ├── README.Watcom
│ ├── README.WinCE
│ ├── rwlock.c
│ ├── sched.c
│ ├── sched_get_priority_max.c
│ ├── sched_get_priority_min.c
│ ├── sched_getscheduler.c
│ ├── sched.h
│ ├── sched_setscheduler.c
│ ├── sched_yield.c
│ ├── semaphore.c
│ ├── semaphore.h
│ ├── sem_close.c
│ ├── sem_destroy.c
│ ├── sem_getvalue.c
│ ├── sem_init.c
│ ├── sem_open.c
│ ├── sem_post.c
│ ├── sem_post_multiple.c
│ ├── sem_timedwait.c
│ ├── sem_trywait.c
│ ├── sem_unlink.c
│ ├── sem_wait.c
│ ├── signal.c
│ ├── spin.c
│ ├── sync.c
│ ├── tests
│ │ ├── barrier1.c
│ │ ├── barrier2.c
│ │ ├── barrier3.c
│ │ ├── barrier4.c
│ │ ├── barrier5.c
│ │ ├── barrier6.c
│ │ ├── benchlib.c
│ │ ├── benchtest1.c
│ │ ├── benchtest2.c
│ │ ├── benchtest3.c
│ │ ├── benchtest4.c
│ │ ├── benchtest5.c
│ │ ├── benchtest.h
│ │ ├── Bmakefile
│ │ ├── cancel1.c
│ │ ├── cancel2.c
│ │ ├── cancel3.c
│ │ ├── cancel4.c
│ │ ├── cancel5.c
│ │ ├── cancel6a.c
│ │ ├── cancel6d.c
│ │ ├── cancel7.c
│ │ ├── cancel8.c
│ │ ├── cancel9.c
│ │ ├── ChangeLog
│ │ ├── cleanup0.c
│ │ ├── cleanup1.c
│ │ ├── cleanup2.c
│ │ ├── cleanup3.c
│ │ ├── condvar1_1.c
│ │ ├── condvar1_2.c
│ │ ├── condvar1.c
│ │ ├── condvar2_1.c
│ │ ├── condvar2.c
│ │ ├── condvar3_1.c
│ │ ├── condvar3_2.c
│ │ ├── condvar3_3.c
│ │ ├── condvar3.c
│ │ ├── condvar4.c
│ │ ├── condvar5.c
│ │ ├── condvar6.c
│ │ ├── condvar7.c
│ │ ├── condvar8.c
│ │ ├── condvar9.c
│ │ ├── context1.c
│ │ ├── count1.c
│ │ ├── create1.c
│ │ ├── create2.c
│ │ ├── create3.c
│ │ ├── Debug.dsp
│ │ ├── Debug.dsw
│ │ ├── Debug.plg
│ │ ├── Debug.txt
│ │ ├── delay1.c
│ │ ├── delay2.c
│ │ ├── detach1.c
│ │ ├── equal1.c
│ │ ├── errno1.c
│ │ ├── exception1.c
│ │ ├── exception2.c
│ │ ├── exception3.c
│ │ ├── exit1.c
│ │ ├── exit2.c
│ │ ├── exit3.c
│ │ ├── exit4.c
│ │ ├── exit5.c
│ │ ├── eyal1.c
│ │ ├── GNUmakefile
│ │ ├── inherit1.c
│ │ ├── join0.c
│ │ ├── join1.c
│ │ ├── join2.c
│ │ ├── join3.c
│ │ ├── kill1.c
│ │ ├── loadfree.c
│ │ ├── Makefile
│ │ ├── mutex1.c
│ │ ├── mutex1e.c
│ │ ├── mutex1n.c
│ │ ├── mutex1r.c
│ │ ├── mutex2.c
│ │ ├── mutex2e.c
│ │ ├── mutex2r.c
│ │ ├── mutex3.c
│ │ ├── mutex3e.c
│ │ ├── mutex3r.c
│ │ ├── mutex4.c
│ │ ├── mutex5.c
│ │ ├── mutex6.c
│ │ ├── mutex6e.c
│ │ ├── mutex6es.c
│ │ ├── mutex6n.c
│ │ ├── mutex6r.c
│ │ ├── mutex6rs.c
│ │ ├── mutex6s.c
│ │ ├── mutex7.c
│ │ ├── mutex7e.c
│ │ ├── mutex7n.c
│ │ ├── mutex7r.c
│ │ ├── mutex8.c
│ │ ├── mutex8e.c
│ │ ├── mutex8n.c
│ │ ├── mutex8r.c
│ │ ├── once1.c
│ │ ├── once2.c
│ │ ├── once3.c
│ │ ├── once4.c
│ │ ├── openmp1.c
│ │ ├── priority1.c
│ │ ├── priority2.c
│ │ ├── README
│ │ ├── README.BENCHTESTS
│ │ ├── reuse1.c
│ │ ├── reuse2.c
│ │ ├── robust1.c
│ │ ├── robust2.c
│ │ ├── robust3.c
│ │ ├── robust4.c
│ │ ├── robust5.c
│ │ ├── rwlock1.c
│ │ ├── rwlock2.c
│ │ ├── rwlock2_t.c
│ │ ├── rwlock3.c
│ │ ├── rwlock3_t.c
│ │ ├── rwlock4.c
│ │ ├── rwlock4_t.c
│ │ ├── rwlock5.c
│ │ ├── rwlock5_t.c
│ │ ├── rwlock6.c
│ │ ├── rwlock6_t2.c
│ │ ├── rwlock6_t.c
│ │ ├── rwlock7.c
│ │ ├── rwlock8.c
│ │ ├── self1.c
│ │ ├── self2.c
│ │ ├── semaphore1.c
│ │ ├── semaphore2.c
│ │ ├── semaphore3.c
│ │ ├── semaphore4.c
│ │ ├── semaphore4t.c
│ │ ├── semaphore5.c
│ │ ├── sequence1.c
│ │ ├── sizes.c
│ │ ├── SIZES.GC
│ │ ├── SIZES.GCE
│ │ ├── SIZES.VC
│ │ ├── SIZES.VCE
│ │ ├── SIZES.VSE
│ │ ├── spin1.c
│ │ ├── spin2.c
│ │ ├── spin3.c
│ │ ├── spin4.c
│ │ ├── stress1.c
│ │ ├── test.h
│ │ ├── tryentercs2.c
│ │ ├── tryentercs.c
│ │ ├── tsd1.c
│ │ ├── tsd2.c
│ │ ├── valid1.c
│ │ ├── valid2.c
│ │ └── Wmakefile
│ ├── TODO
│ ├── tsd.c
│ ├── vc100.pdb
│ ├── version.rc
│ ├── w32_CancelableWait.c
│ └── WinCE-PORT
├── pthread.sln
├── sched.h
├── semaphore.h
└── testPthread
├── pthread.h
├── ReadMe.txt
├── stdafx.cpp
├── stdafx.h
├── targetver.h
├── testPthread.cpp
├── testPthread.vcxproj
├── testPthread.vcxproj.filters
└── testPthread.vcxproj.user
3 directories, 367 files
标签:
相关软件
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论