diff options
author | monty@hundin.mysql.fi <> | 2001-11-07 00:19:36 +0200 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2001-11-07 00:19:36 +0200 |
commit | f9a321af8a077ea7dc17a7964166738daab6db7e (patch) | |
tree | f1c7979e7d8282f034f3cabdfe558293a7f7c2f4 /innobase/os | |
parent | 9285b745d672c18fe7ed0e6639fba95db862613e (diff) | |
parent | af2e13481ecc4dbae74fa5a4dc4f9d70ec498e39 (diff) | |
download | mariadb-git-f9a321af8a077ea7dc17a7964166738daab6db7e.tar.gz |
merge
Diffstat (limited to 'innobase/os')
-rw-r--r-- | innobase/os/os0sync.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/innobase/os/os0sync.c b/innobase/os/os0sync.c index 8da142cd4a6..2cf5160d055 100644 --- a/innobase/os/os0sync.c +++ b/innobase/os/os0sync.c @@ -455,6 +455,21 @@ os_fast_mutex_lock( } /************************************************************** +Releases ownership of a fast mutex. */ + +void +os_fast_mutex_unlock( +/*=================*/ + os_fast_mutex_t* fast_mutex) /* in: mutex to release */ +{ +#ifdef __WIN__ + LeaveCriticalSection(fast_mutex); +#else + pthread_mutex_unlock(fast_mutex); +#endif +} + +/************************************************************** Frees a mutex object. */ void |