8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 07:23:04 +01:00

A few necessary "volatile" usage

This commit is contained in:
asfernandes 2009-09-10 15:30:03 +00:00
parent d5562bde4e
commit 519a3b0aa7
4 changed files with 6 additions and 7 deletions

View File

@ -111,7 +111,6 @@ const SLONG SIG_informs_continue = 0; /* continue on signal processing */
const SLONG SIG_informs_stop = 1; /* stop signal processing */
static bool initialized_signals = false;
static SIG volatile signals = NULL;
static SLONG volatile overflow_count = 0;

View File

@ -358,8 +358,8 @@ static XDR::xdr_ops inet_ops =
SLONG INET_remote_buffer;
static Firebird::GlobalPtr<Firebird::Mutex> init_mutex;
static bool INET_initialized = false;
static bool INET_shutting_down = false;
static volatile bool INET_initialized = false;
static volatile bool INET_shutting_down = false;
static slct_t INET_select = { 0, 0, 0 };
static int INET_max_clients;
static rem_port* inet_async_receive = NULL;

View File

@ -60,8 +60,8 @@ Firebird::AtomicCounter event_counter;
static Firebird::GlobalPtr<PortsCleanup> wnet_ports;
static Firebird::GlobalPtr<Firebird::Mutex> init_mutex;
static bool wnet_initialized = false;
static bool wnet_shutdown = false;
static volatile bool wnet_initialized = false;
static volatile bool wnet_shutdown = false;
static bool accept_connection(rem_port*, const P_CNCT*);
static rem_port* alloc_port(rem_port*);

View File

@ -138,8 +138,8 @@ static char xnet_endpoint[BUFFER_TINY] = "";
#endif // WIN_NT
static bool xnet_initialized = false;
static bool xnet_shutdown = false;
static volatile bool xnet_initialized = false;
static volatile bool xnet_shutdown = false;
static Firebird::GlobalPtr<Firebird::Mutex> xnet_mutex;
static Firebird::GlobalPtr<PortsCleanup> xnet_ports;
static ULONG xnet_next_free_map_num = 0;