LibreOffice
LibreOffice 4.1 SDK C/C++ API Reference
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
osl
conditn.h
Go to the documentation of this file.
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
/*
3
* This file is part of the LibreOffice project.
4
*
5
* This Source Code Form is subject to the terms of the Mozilla Public
6
* License, v. 2.0. If a copy of the MPL was not distributed with this
7
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
*
9
* This file incorporates work covered by the following license notice:
10
*
11
* Licensed to the Apache Software Foundation (ASF) under one or more
12
* contributor license agreements. See the NOTICE file distributed
13
* with this work for additional information regarding copyright
14
* ownership. The ASF licenses this file to you under the Apache
15
* License, Version 2.0 (the "License"); you may not use this file
16
* except in compliance with the License. You may obtain a copy of
17
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
18
*/
19
20
21
#ifndef _OSL_CONDITION_H_
22
#define _OSL_CONDITION_H_
23
24
#include "
sal/config.h
"
25
26
#include "
osl/time.h
"
27
#include "
sal/saldllapi.h
"
28
29
#ifdef __cplusplus
30
extern
"C"
{
31
#endif
32
33
typedef
void
*
oslCondition
;
34
35
typedef
enum
{
36
osl_cond_result_ok
,
/* successful completion */
37
osl_cond_result_error
,
/* error occurred, check osl_getLastSocketError() for details */
38
osl_cond_result_timeout
,
/* blocking operation timed out */
39
osl_cond_result_FORCE_EQUAL_SIZE
= SAL_MAX_ENUM
40
}
oslConditionResult
;
41
46
SAL_DLLPUBLIC
oslCondition SAL_CALL
osl_createCondition
(
void
);
47
51
SAL_DLLPUBLIC
void
SAL_CALL
osl_destroyCondition
(oslCondition Condition);
52
58
SAL_DLLPUBLIC
sal_Bool
SAL_CALL
osl_setCondition
(oslCondition Condition);
59
64
SAL_DLLPUBLIC
sal_Bool
SAL_CALL
osl_resetCondition
(oslCondition Condition);
65
73
SAL_DLLPUBLIC
oslConditionResult
SAL_CALL
osl_waitCondition
(oslCondition Condition,
const
TimeValue
* pTimeout);
74
80
SAL_DLLPUBLIC
sal_Bool
SAL_CALL
osl_checkCondition
(oslCondition Condition);
81
82
#ifdef __cplusplus
83
}
84
#endif
85
86
#endif
/* _OSL_CONDITION_H_ */
87
88
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Generated on Wed Aug 21 2013 00:46:14 for LibreOffice by
1.8.4