00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 00002 /* 00003 * This file is part of the LibreOffice project. 00004 * 00005 * This Source Code Form is subject to the terms of the Mozilla Public 00006 * License, v. 2.0. If a copy of the MPL was not distributed with this 00007 * file, You can obtain one at http://mozilla.org/MPL/2.0/. 00008 * 00009 * This file incorporates work covered by the following license notice: 00010 * 00011 * Licensed to the Apache Software Foundation (ASF) under one or more 00012 * contributor license agreements. See the NOTICE file distributed 00013 * with this work for additional information regarding copyright 00014 * ownership. The ASF licenses this file to you under the Apache 00015 * License, Version 2.0 (the "License"); you may not use this file 00016 * except in compliance with the License. You may obtain a copy of 00017 * the License at http://www.apache.org/licenses/LICENSE-2.0 . 00018 */ 00019 00020 #ifndef _OSL_MUTEX_H_ 00021 #define _OSL_MUTEX_H_ 00022 00023 #include "sal/config.h" 00024 00025 #include "sal/saldllapi.h" 00026 #include "sal/types.h" 00027 00028 #ifdef __cplusplus 00029 extern "C" { 00030 #endif 00031 00032 struct _oslMutexImpl; 00033 typedef struct _oslMutexImpl * oslMutex; 00034 00038 SAL_DLLPUBLIC oslMutex SAL_CALL osl_createMutex(void); 00039 00043 SAL_DLLPUBLIC void SAL_CALL osl_destroyMutex(oslMutex Mutex); 00044 00049 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_acquireMutex(oslMutex Mutex); 00050 00055 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_tryToAcquireMutex(oslMutex Mutex); 00056 00061 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_releaseMutex(oslMutex Mutex); 00062 00066 SAL_DLLPUBLIC oslMutex * SAL_CALL osl_getGlobalMutex(void); 00067 00068 #ifdef __cplusplus 00069 } 00070 #endif 00071 00072 #endif /* _OSL_MUTEX_H_ */ 00073 00074 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */