comparison packages/io/fileio/current/src/select.cxx @ 126:518f42066aba ecos-sw-2000-09-19

Merge from eCos master repository on 2000-09-19-06:25:26-BST
author jlarmour
date Tue, 19 Sep 2000 05:53:51 +0000
parents 77cec8369160
children 0c2b7be0d798
comparison
equal deleted inserted replaced
125:b4407dc7f59d 126:518f42066aba
76 // Local variables 76 // Local variables
77 77
78 // Mutex for serializing select processing. This essntially controls 78 // Mutex for serializing select processing. This essntially controls
79 // access to the contents of the selinfo structures embedded in the 79 // access to the contents of the selinfo structures embedded in the
80 // client system data structures. 80 // client system data structures.
81 static Cyg_Mutex select_mutex; 81 static Cyg_Mutex select_mutex CYGBLD_ATTRIB_INIT_PRI(CYG_INIT_IO);
82 82
83 // Condition variable where any thread that is waiting for a select to 83 // Condition variable where any thread that is waiting for a select to
84 // fire is suspended. Note that select is not intended to be a real time 84 // fire is suspended. Note that select is not intended to be a real time
85 // operation. Whenever any selectable event occurs, all selecting threads 85 // operation. Whenever any selectable event occurs, all selecting threads
86 // will be resumed. They must then rescan their selectees and resuspend if 86 // will be resumed. They must then rescan their selectees and resuspend if
87 // necessary. 87 // necessary.
88 static Cyg_Condition_Variable selwait( select_mutex ); 88 static Cyg_Condition_Variable selwait( select_mutex ) CYGBLD_ATTRIB_INIT_PRI(CYG_INIT_IO);
89 89
90 static volatile cyg_uint32 selwake_count = 0; 90 static volatile cyg_uint32 selwake_count = 0;
91 91
92 //========================================================================== 92 //==========================================================================
93 // Timeval to ticks conversion support 93 // Timeval to ticks conversion support