diff options
author | jsorg71 <jsorg71> | 2008-08-13 07:44:00 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2008-08-13 07:44:00 +0000 |
commit | 5ed8c4b4d4981d940d909503ca8adccb51e1b888 (patch) | |
tree | 21133e0c8e69d917dce373c2d96bdb178cc5aa00 /common/thread_calls.c | |
parent | e5cebc97f54a2889f29096732ff745ec67765fc5 (diff) | |
download | xrdp-proprietary-5ed8c4b4d4981d940d909503ca8adccb51e1b888.tar.gz xrdp-proprietary-5ed8c4b4d4981d940d909503ca8adccb51e1b888.zip |
added threadid_equal
Diffstat (limited to 'common/thread_calls.c')
-rw-r--r-- | common/thread_calls.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/common/thread_calls.c b/common/thread_calls.c index c28febdf..6e40faae 100644 --- a/common/thread_calls.c +++ b/common/thread_calls.c @@ -75,6 +75,18 @@ tc_get_threadid(void) } /*****************************************************************************/ +/* returns boolean */ +int APP_CC +tc_threadid_equal(tbus tid1, tbus tid2) +{ +#if defined(_WIN32) + return tid1 == tid2; +#else + return pthread_equal((pthread_t)tid1, (pthread_t)tid2); +#endif +} + +/*****************************************************************************/ tbus APP_CC tc_mutex_create(void) { |