/[pkg-firebird]/upstream/current/src/jrd/sch_proto.h
ViewVC logotype

Contents of /upstream/current/src/jrd/sch_proto.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 450 - (hide annotations) (download)
Sat Aug 5 06:54:46 2006 UTC (6 years, 9 months ago) by dam-guest
File MIME type: text/plain
File size: 1735 byte(s)
Tag 2.0.0.12654 as the current upstream (prepare for svn-upgrade)
1 dam-guest 271 /*
2     * PROGRAM: JRD Access method
3     * MODULE: sch_proto.h
4     * DESCRIPTION: Prototype Header file for sch.cpp
5     *
6     * The contents of this file are subject to the Interbase Public
7     * License Version 1.0 (the "License"); you may not use this file
8     * except in compliance with the License. You may obtain a copy
9     * of the License at http://www.Inprise.com/IPL.html
10     *
11     * Software distributed under the License is distributed on an
12     * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
13     * or implied. See the License for the specific language governing
14     * rights and limitations under the License.
15     *
16     * The Original Code was created by Inprise Corporation
17     * and its predecessors. Portions created by Inprise Corporation are
18     * Copyright (C) Inprise Corporation.
19     *
20     * All Rights Reserved.
21     * Contributor(s): ______________________________________.
22     */
23    
24     #ifndef JRD_SCH_PROTO_H
25     #define JRD_SCH_PROTO_H
26    
27     #include "../jrd/isc.h"
28    
29     extern "C" {
30    
31     /* AST actions taken by SCH_ast() */
32    
33     enum ast_t
34     {
35     AST_alloc,
36     AST_init,
37     AST_fini,
38     AST_check,
39     AST_disable,
40     AST_enable,
41     AST_enter,
42     AST_exit
43     };
44    
45     int API_ROUTINE gds__thread_enable(int);
46     void API_ROUTINE gds__thread_enter(void);
47     void API_ROUTINE gds__thread_exit(void);
48     #ifdef VMS
49     int API_ROUTINE gds__ast_active(void);
50     void API_ROUTINE gds__completion_ast(void);
51     int API_ROUTINE gds__thread_wait(int (*)(), SLONG);
52     #endif // VMS
53    
54     } // extern "C"
55    
56     struct thread;
57    
58     void SCH_abort(void);
59    
60     extern "C"
61     void SCH_ast(enum ast_t);
62    
63     thread* SCH_current_thread(void);
64     void SCH_enter(void);
65     void SCH_exit(void);
66     void SCH_hiber(void);
67     void SCH_init(void);
68     bool SCH_schedule(void);
69     bool SCH_thread_enter_check(void);
70     bool SCH_validate(void);
71     void SCH_wake(thread*);
72    
73    
74     #endif // JRD_SCH_PROTO_H
75    

  ViewVC Help
Powered by ViewVC 1.1.5