File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -92,8 +92,10 @@ class OpenEvents
9292
9393 HANDLE getEvent (SLONG pid, SLONG signal_number)
9494 {
95+ Firebird::MutexLockGuard guard (&m_mutex, FB_FUNCTION);
96+
9597 Item* oldestEvent = NULL ;
96- ULONG oldestAge = ~0 ;
98+ FB_UINT64 oldestAge = ~( 0ULL ) ;
9799
98100 Item* evnt = m_events;
99101 const Item* const end = evnt + m_count;
@@ -133,18 +135,18 @@ class OpenEvents
133135 }
134136
135137private:
136- class Item
138+ struct Item
137139 {
138- public:
139140 SLONG pid;
140141 SLONG signal; // pseudo-signal number
141142 HANDLE handle; // local handle to foreign event
142- ULONG age;
143+ FB_UINT64 age;
143144 };
144145
145146 Item m_events[MAX_OPN_EVENTS];
146147 int m_count;
147- ULONG m_clock;
148+ FB_UINT64 m_clock;
149+ Firebird::Mutex m_mutex;
148150};
149151
150152} // namespace
You can’t perform that action at this time.
0 commit comments