UDK 3.2.7 C/C++ API Reference
|
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 00002 /************************************************************************* 00003 * 00004 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 00005 * 00006 * Copyright 2000, 2010 Oracle and/or its affiliates. 00007 * 00008 * OpenOffice.org - a multi-platform office productivity suite 00009 * 00010 * This file is part of OpenOffice.org. 00011 * 00012 * OpenOffice.org is free software: you can redistribute it and/or modify 00013 * it under the terms of the GNU Lesser General Public License version 3 00014 * only, as published by the Free Software Foundation. 00015 * 00016 * OpenOffice.org is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU Lesser General Public License version 3 for more details 00020 * (a copy is included in the LICENSE file that accompanied this code). 00021 * 00022 * You should have received a copy of the GNU Lesser General Public License 00023 * version 3 along with OpenOffice.org. If not, see 00024 * <http://www.openoffice.org/license.html> 00025 * for a copy of the LGPLv3 License. 00026 * 00027 ************************************************************************/ 00028 00029 00030 #ifndef _OSL_CONDITION_H_ 00031 #define _OSL_CONDITION_H_ 00032 00033 #include <osl/time.h> 00034 00035 #ifdef __cplusplus 00036 extern "C" { 00037 #endif 00038 00039 typedef void* oslCondition; 00040 00041 typedef enum { 00042 osl_cond_result_ok, /* successful completion */ 00043 osl_cond_result_error, /* error occurred, check osl_getLastSocketError() for details */ 00044 osl_cond_result_timeout, /* blocking operation timed out */ 00045 osl_cond_result_FORCE_EQUAL_SIZE = SAL_MAX_ENUM 00046 } oslConditionResult; 00047 00052 SAL_DLLPUBLIC oslCondition SAL_CALL osl_createCondition(void); 00053 00057 SAL_DLLPUBLIC void SAL_CALL osl_destroyCondition(oslCondition Condition); 00058 00064 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_setCondition(oslCondition Condition); 00065 00070 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_resetCondition(oslCondition Condition); 00071 00079 SAL_DLLPUBLIC oslConditionResult SAL_CALL osl_waitCondition(oslCondition Condition, const TimeValue* pTimeout); 00080 00086 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_checkCondition(oslCondition Condition); 00087 00088 #ifdef __cplusplus 00089 } 00090 #endif 00091 00092 #endif /* _OSL_CONDITION_H_ */ 00093 00094 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */