亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? implement.h

?? 7z 移植到windows mobile上,完整的程序并能運行,包括了pthread 多線程庫移植windows mobile上的使用及實例.
?? H
?? 第 1 頁 / 共 2 頁
字號:
   *             intersection of two doubly-linked lists.
   *
   *                 T1    T2    T3
   *                 |     |     |
   *                 |     |     |
   *         K1 -----+-----A-----A----->
   *                 |     |     |
   *                 |     |     |
   *         K2 -----A-----A-----+----->
   *                 |     |     |
   *                 |     |     |
   *         K3 -----A-----+-----A----->
   *                 |     |     |
   *                 |     |     |
   *                 V     V     V
   *
   *      Access to the association is guarded by two locks: the key's
   *      general lock (guarding the row) and the thread's general
   *      lock (guarding the column). This avoids the need for a
   *      dedicated lock for each association, which not only consumes
   *      more handles but requires that: before the lock handle can
   *      be released - both the key must be deleted and the thread
   *      must have called the destructor. The two-lock arrangement
   *      allows the resources to be freed as soon as either thread or
   *      key is concluded.
   *
   *      To avoid deadlock: whenever both locks are required, the key
   *      and thread locks are always acquired in the order: key lock
   *      then thread lock. An exception to this exists when a thread
   *      calls the destructors, however this is done carefully to
   *      avoid deadlock.
   *
   *      An association is created when a thread first calls
   *      pthread_setspecific() on a key that has a specified
   *      destructor.
   *
   *      An association is destroyed either immediately after the
   *      thread calls the key destructor function on thread exit, or
   *      when the key is deleted.
   *
   * Attributes:
   *      thread
   *              reference to the thread that owns the
   *              association. This is actually the pointer to the
   *              thread struct itself. Since the association is
   *              destroyed before the thread exits, this can never
   *              point to a different logical thread to the one that
   *              created the assoc, i.e. after thread struct reuse.
   *
   *      key
   *              reference to the key that owns the association.
   *
   *      nextKey
   *              The pthread_t->keys attribute is the head of a
   *              chain of associations that runs through the nextKey
   *              link. This chain provides the 1 to many relationship
   *              between a pthread_t and all pthread_key_t on which
   *              it called pthread_setspecific.
   *
   *      prevKey
   *              Similarly.
   *
   *      nextThread
   *              The pthread_key_t->threads attribute is the head of
   *              a chain of assoctiations that runs through the
   *              nextThreads link. This chain provides the 1 to many
   *              relationship between a pthread_key_t and all the 
   *              PThreads that have called pthread_setspecific for
   *              this pthread_key_t.
   *
   *      prevThread
   *              Similarly.
   *
   * Notes:
   *      1)      As soon as either the key or the thread is no longer
   *              referencing the association, it can be destroyed. The
   *              association will be removed from both chains.
   *
   *      2)      Under WIN32, an association is only created by
   *              pthread_setspecific if the user provided a
   *              destroyRoutine when they created the key.
   *
   *
   */
  ptw32_thread_t * thread;
  pthread_key_t key;
  ThreadKeyAssoc *nextKey;
  ThreadKeyAssoc *nextThread;
  ThreadKeyAssoc *prevKey;
  ThreadKeyAssoc *prevThread;
};


#ifdef __CLEANUP_SEH
/*
 * --------------------------------------------------------------
 * MAKE_SOFTWARE_EXCEPTION
 *      This macro constructs a software exception code following
 *      the same format as the standard Win32 error codes as defined
 *      in WINERROR.H
 *  Values are 32 bit values layed out as follows:
 *
 *   1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
 *  +---+-+-+-----------------------+-------------------------------+
 *  |Sev|C|R|     Facility          |               Code            |
 *  +---+-+-+-----------------------+-------------------------------+
 *
 * Severity Values:
 */
#define SE_SUCCESS              0x00
#define SE_INFORMATION          0x01
#define SE_WARNING              0x02
#define SE_ERROR                0x03

#define MAKE_SOFTWARE_EXCEPTION( _severity, _facility, _exception ) \
( (DWORD) ( ( (_severity) << 30 ) |     /* Severity code        */ \
            ( 1 << 29 ) |               /* MS=0, User=1         */ \
            ( 0 << 28 ) |               /* Reserved             */ \
            ( (_facility) << 16 ) |     /* Facility Code        */ \
            ( (_exception) <<  0 )      /* Exception Code       */ \
            ) )

/*
 * We choose one specific Facility/Error code combination to
 * identify our software exceptions vs. WIN32 exceptions.
 * We store our actual component and error code within
 * the optional information array.
 */
#define EXCEPTION_PTW32_SERVICES        \
     MAKE_SOFTWARE_EXCEPTION( SE_ERROR, \
                              PTW32_SERVICES_FACILITY, \
                              PTW32_SERVICES_ERROR )

#define PTW32_SERVICES_FACILITY         0xBAD
#define PTW32_SERVICES_ERROR            0xDEED

#endif /* __CLEANUP_SEH */

/*
 * Services available through EXCEPTION_PTW32_SERVICES
 * and also used [as parameters to ptw32_throw()] as
 * generic exception selectors.
 */

#define PTW32_EPS_EXIT                  (1)
#define PTW32_EPS_CANCEL                (2)


/* Useful macros */
#define PTW32_MAX(a,b)  ((a)<(b)?(b):(a))
#define PTW32_MIN(a,b)  ((a)>(b)?(b):(a))


/* Declared in global.c */
extern PTW32_INTERLOCKED_LONG (WINAPI *
			       ptw32_interlocked_compare_exchange)
  (PTW32_INTERLOCKED_LPLONG, PTW32_INTERLOCKED_LONG, PTW32_INTERLOCKED_LONG);

/* Declared in pthread_cancel.c */
extern DWORD (*ptw32_register_cancelation) (PAPCFUNC, HANDLE, DWORD);

/* Thread Reuse stack bottom marker. Must not be NULL or any valid pointer to memory. */
#define PTW32_THREAD_REUSE_EMPTY ((ptw32_thread_t *) 1)

extern int ptw32_processInitialized;
extern ptw32_thread_t * ptw32_threadReuseTop;
extern ptw32_thread_t * ptw32_threadReuseBottom;
extern pthread_key_t ptw32_selfThreadKey;
extern pthread_key_t ptw32_cleanupKey;
extern pthread_cond_t ptw32_cond_list_head;
extern pthread_cond_t ptw32_cond_list_tail;

extern int ptw32_mutex_default_kind;

extern int ptw32_concurrency;

extern int ptw32_features;

extern BOOL ptw32_smp_system;  /* True: SMP system, False: Uni-processor system */

extern CRITICAL_SECTION ptw32_thread_reuse_lock;
extern CRITICAL_SECTION ptw32_mutex_test_init_lock;
extern CRITICAL_SECTION ptw32_cond_list_lock;
extern CRITICAL_SECTION ptw32_cond_test_init_lock;
extern CRITICAL_SECTION ptw32_rwlock_test_init_lock;
extern CRITICAL_SECTION ptw32_spinlock_test_init_lock;

#ifdef _UWIN
extern int pthread_count;
#endif

#ifdef __cplusplus
extern "C"
{
#endif				/* __cplusplus */

/*
 * =====================
 * =====================
 * Forward Declarations
 * =====================
 * =====================
 */

  int ptw32_is_attr (const pthread_attr_t * attr);

  int ptw32_cond_check_need_init (pthread_cond_t * cond);
  int ptw32_mutex_check_need_init (pthread_mutex_t * mutex);
  int ptw32_rwlock_check_need_init (pthread_rwlock_t * rwlock);

  PTW32_INTERLOCKED_LONG WINAPI
    ptw32_InterlockedCompareExchange (PTW32_INTERLOCKED_LPLONG location,
				      PTW32_INTERLOCKED_LONG value,
				      PTW32_INTERLOCKED_LONG comparand);

  LONG WINAPI
    ptw32_InterlockedExchange (LPLONG location,
			       LONG value);

  DWORD
    ptw32_RegisterCancelation (PAPCFUNC callback,
			       HANDLE threadH, DWORD callback_arg);

  int ptw32_processInitialize (void);

  void ptw32_processTerminate (void);

  void ptw32_threadDestroy (pthread_t tid);

  void ptw32_pop_cleanup_all (int execute);

  pthread_t ptw32_new (void);

  pthread_t ptw32_threadReusePop (void);

  void ptw32_threadReusePush (pthread_t thread);

  int ptw32_getprocessors (int *count);

  int ptw32_setthreadpriority (pthread_t thread, int policy, int priority);

  void ptw32_rwlock_cancelwrwait (void *arg);

#if ! defined (__MINGW32__) || defined (__MSVCRT__)
  unsigned __stdcall
#else
  void
#endif
    ptw32_threadStart (void *vthreadParms);

  void ptw32_callUserDestroyRoutines (pthread_t thread);

  int ptw32_tkAssocCreate (ptw32_thread_t * thread, pthread_key_t key);

  void ptw32_tkAssocDestroy (ThreadKeyAssoc * assoc);

  int ptw32_semwait (sem_t * sem);

  DWORD ptw32_relmillisecs (const struct timespec * abstime);

  void ptw32_mcs_lock_acquire (ptw32_mcs_lock_t * lock, ptw32_mcs_local_node_t * node);

  void ptw32_mcs_lock_release (ptw32_mcs_local_node_t * node);

#ifdef NEED_FTIME
  void ptw32_timespec_to_filetime (const struct timespec *ts, FILETIME * ft);
  void ptw32_filetime_to_timespec (const FILETIME * ft, struct timespec *ts);
#endif

/* Declared in misc.c */
#ifdef NEED_CALLOC
#define calloc(n, s) ptw32_calloc(n, s)
  void *ptw32_calloc (size_t n, size_t s);
#endif

/* Declared in private.c */
  void ptw32_throw (DWORD exception);

#ifdef __cplusplus
}
#endif				/* __cplusplus */


#ifdef _UWIN_
#   ifdef       _MT
#       ifdef __cplusplus
extern "C"
{
#       endif
  _CRTIMP unsigned long __cdecl _beginthread (void (__cdecl *) (void *),
					      unsigned, void *);
  _CRTIMP void __cdecl _endthread (void);
  _CRTIMP unsigned long __cdecl _beginthreadex (void *, unsigned,
						unsigned (__stdcall *) (void *),
						void *, unsigned, unsigned *);
  _CRTIMP void __cdecl _endthreadex (unsigned);
#       ifdef __cplusplus
}
#       endif
#   endif
#else
#	ifndef WINCE
#		include <process.h>
#	endif
#endif


/*
 * Defaults. Could be overridden when building the inlined version of the dll.
 * See ptw32_InterlockedCompareExchange.c
 */
#ifndef PTW32_INTERLOCKED_COMPARE_EXCHANGE
#  if defined(WINCE) && defined(_ARM_)
#    define PTW32_INTERLOCKED_COMPARE_EXCHANGE InterlockedCompareExchange
#  else
#    define PTW32_INTERLOCKED_COMPARE_EXCHANGE ptw32_interlocked_compare_exchange
#  endif
#endif

#ifndef PTW32_INTERLOCKED_EXCHANGE
#define PTW32_INTERLOCKED_EXCHANGE InterlockedExchange
#endif


/*
 * Check for old and new versions of cygwin. See the FAQ file:
 *
 * Question 1 - How do I get pthreads-win32 to link under Cygwin or Mingw32?
 *
 * Patch by Anders Norlander <anorland@hem2.passagen.se>
 */
#if defined(__CYGWIN32__) || defined(__CYGWIN__) || defined(NEED_CREATETHREAD)

/* 
 * Macro uses args so we can cast start_proc to LPTHREAD_START_ROUTINE
 * in order to avoid warnings because of return type
 */

#define _beginthreadex(security, \
                       stack_size, \
                       start_proc, \
                       arg, \
                       flags, \
                       pid) \
        CreateThread(security, \
                     stack_size, \
                     (LPTHREAD_START_ROUTINE) start_proc, \
                     arg, \
                     flags, \
                     pid)

#define _endthreadex ExitThread

#endif				/* __CYGWIN32__ || __CYGWIN__ || NEED_CREATETHREAD */


#endif				/* _IMPLEMENT_H */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区精品视频| 国产成a人亚洲精品| 国产精品综合久久| 91黄色小视频| 国产日产欧美精品一区二区三区| 亚洲婷婷在线视频| 欧美乱熟臀69xxxxxx| 久久久亚洲高清| 婷婷综合另类小说色区| 成人免费看视频| 2020国产精品| 日本成人超碰在线观看| 一本一道久久a久久精品| 久久精品网站免费观看| 日韩高清不卡一区| 欧美色爱综合网| 亚洲色图色小说| 岛国av在线一区| 国产午夜精品一区二区三区嫩草| 视频一区二区欧美| 欧美日韩免费电影| 亚洲精品久久久久久国产精华液| 成人免费视频免费观看| 国产日韩精品一区二区三区在线| 蜜桃久久久久久| 欧美xxxxxxxx| 麻豆高清免费国产一区| 欧美日韩的一区二区| 亚洲自拍都市欧美小说| 91电影在线观看| 一区av在线播放| 欧美性大战久久久久久久| 亚洲激情第一区| 欧美在线色视频| 亚洲国产欧美日韩另类综合| 在线国产亚洲欧美| 一区二区三区蜜桃网| 日本精品一区二区三区高清| 亚洲欧美另类久久久精品| 91免费视频大全| 一区二区三区在线不卡| 欧美三级日韩在线| 人人精品人人爱| 精品久久久三级丝袜| 激情图区综合网| 欧美激情一区二区三区四区| 国产91色综合久久免费分享| 调教+趴+乳夹+国产+精品| 在线观看区一区二| 热久久一区二区| 欧美精品一区二区高清在线观看| 精品一区二区久久| 国产精品三级av| 91成人国产精品| 日本vs亚洲vs韩国一区三区| 精品久久久久久久久久久久久久久| 久久精品国产99国产精品| xf在线a精品一区二区视频网站| 国产成人一区在线| 樱花影视一区二区| 91精品在线观看入口| 国产中文字幕一区| 亚洲欧美日韩国产综合在线| 欧美日韩精品一区视频| 国内精品国产成人| 亚洲欧洲另类国产综合| 色丁香久综合在线久综合在线观看| 亚洲一区二区不卡免费| 91精品在线一区二区| 国产精品亚洲第一| 亚洲乱码国产乱码精品精小说| 欧美午夜精品久久久| 国产剧情在线观看一区二区 | 精品一区二区在线免费观看| 中文字幕不卡在线观看| 欧美日韩午夜在线视频| 国产一区二区不卡| 天堂蜜桃一区二区三区| 国产精品国产三级国产三级人妇| 欧美日韩一区二区三区高清| 欧美日韩成人激情| 成av人片一区二区| 精品在线播放免费| 亚洲午夜电影在线观看| 欧美国产一区在线| 日韩女优视频免费观看| 欧美在线|欧美| 国产成人夜色高潮福利影视| 午夜精品久久久久久久蜜桃app| 亚洲国产成人一区二区三区| 日韩一区二区视频| 在线欧美日韩国产| 成人黄色片在线观看| 久久综合综合久久综合| 亚洲成人777| 欧美影片第一页| a在线播放不卡| 国产精品一区二区久久不卡| 丝袜诱惑亚洲看片| 亚洲午夜精品17c| 亚洲最色的网站| 亚洲日韩欧美一区二区在线| 国产视频一区不卡| 久久只精品国产| 欧美成人a∨高清免费观看| 欧美日韩精品系列| 欧美性大战久久| 欧美日韩在线综合| 欧美午夜免费电影| 91福利资源站| 精品视频在线看| 欧美在线不卡视频| 精品视频在线免费| 欧美高清你懂得| 制服丝袜成人动漫| 日韩精品一区二区三区老鸭窝| 欧美精品久久久久久久多人混战| 欧美撒尿777hd撒尿| 欧美日韩久久久| 日韩三级免费观看| 2024国产精品视频| 久久久久亚洲综合| 国产精品系列在线| 亚洲日穴在线视频| 亚洲国产成人av| 蜜桃精品在线观看| 国内精品嫩模私拍在线| 国产成人午夜视频| 91在线国产福利| 在线一区二区三区四区| 欧美精品tushy高清| 日韩午夜av一区| 国产日韩欧美激情| 亚洲免费在线播放| 日韩精品五月天| 国产自产视频一区二区三区| 国产mv日韩mv欧美| 色婷婷综合在线| 日韩视频在线永久播放| 国产亚洲欧美在线| 裸体健美xxxx欧美裸体表演| 激情综合网av| 丁香婷婷综合网| 欧美日韩精品一区二区天天拍小说| 欧美精品自拍偷拍| 国产亚洲美州欧州综合国| 亚洲色图清纯唯美| 美女脱光内衣内裤视频久久影院| 国产一区二区三区在线看麻豆| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 久久美女艺术照精彩视频福利播放| 国产精品免费久久| 日日骚欧美日韩| 波多野结衣中文字幕一区二区三区| 欧美色视频一区| 久久久综合九色合综国产精品| 亚洲少妇30p| 精品一区二区三区不卡 | 中文字幕高清一区| 日韩精品一级二级 | 欧美视频三区在线播放| 欧美成人精精品一区二区频| 亚洲欧洲国产日本综合| 人人精品人人爱| 日本韩国欧美在线| 国产欧美日韩视频在线观看| 一级日本不卡的影视| 国产一区二区三区在线观看精品| 欧美伊人久久久久久午夜久久久久| 精品日产卡一卡二卡麻豆| 一区二区三区日韩| 成人永久免费视频| xnxx国产精品| 麻豆成人av在线| 欧美日韩一区小说| 久久aⅴ国产欧美74aaa| 欧美日韩小视频| 一级做a爱片久久| 99re视频精品| 国产午夜精品久久久久久免费视 | 久久天堂av综合合色蜜桃网| 亚洲一区精品在线| 色综合久久久久综合99| 欧美激情在线一区二区| 国产精品18久久久| 26uuu久久综合| 老司机午夜精品| 日韩欧美一级精品久久| 丝袜国产日韩另类美女| 欧美日韩国产电影| 亚洲精品视频免费看| 91日韩精品一区| 亚洲天天做日日做天天谢日日欢 | 91看片淫黄大片一级| 国产98色在线|日韩| 337p粉嫩大胆色噜噜噜噜亚洲| 美女任你摸久久| 日韩精品一区二区在线观看| 日本不卡视频在线| 欧美大胆一级视频|