tml; charset=UTF-8 Last-Modified: Fri, 27 Nov 2026 05:23:17 GMT Expires: Mon, 24 Nov 2036 05:23:17 GMT State at 2023-07-21 - luaatc_envs.git - LuaATC environments
summaryrefslogtreecommitdiff
path: root/il_timetable
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-04-22 15:00:34 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-04-22 15:00:34 +0200
commit7b0eb477e679926a1a27cb76436849e2bd382637 (patch)
tree8ee214cb57bdba7a1e976b666f22453ec0d1aa7b /il_timetable
parente03d888a00e52d12b992456a646e79bef2873418 (diff)
State at 2023-07-21
Diffstat (limited to 'il_timetable')
0 files changed, 0 insertions, 0 deletions
charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include <assert.h> #include "jthread/jmutex.h" #define UNUSED(expr) do { (void)(expr); } while (0) JMutex::JMutex() { int mutex_init_retval = pthread_mutex_init(&mutex,NULL); assert( mutex_init_retval == 0 ); UNUSED(mutex_init_retval); } JMutex::~JMutex() { int mutex_dextroy_retval = pthread_mutex_destroy(&mutex); assert( mutex_dextroy_retval == 0 ); UNUSED(mutex_dextroy_retval); } int JMutex::Lock() { int mutex_lock_retval = pthread_mutex_lock(&mutex); assert( mutex_lock_retval == 0 ); return mutex_lock_retval; UNUSED(mutex_lock_retval); } int JMutex::Unlock() { int mutex_unlock_retval = pthread_mutex_unlock(&mutex); assert( mutex_unlock_retval == 0 ); return mutex_unlock_retval; UNUSED(mutex_unlock_retval); }