MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / event_blocked

Function event_blocked

src/common/isc_sync.cpp:2873–2900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2871
2872
2873static bool event_blocked(const event_t* event, const SLONG value)
2874{
2875/**************************************
2876 *
2877 * e v e n t _ b l o c k e d
2878 *
2879 **************************************
2880 *
2881 * Functional description
2882 * If a wait would block, return true.
2883 *
2884 **************************************/
2885
2886 if (event->event_count >= value)
2887 {
2888#ifdef DEBUG_ISC_SYNC
2889 printf("event_blocked: FALSE (eg something to report)\n");
2890 fflush(stdout);
2891#endif
2892 return false;
2893 }
2894
2895#ifdef DEBUG_ISC_SYNC
2896 printf("event_blocked: TRUE (eg nothing happened yet)\n");
2897 fflush(stdout);
2898#endif
2899 return true;
2900}
2901
2902
2903static void error(CheckStatusWrapper* statusVector, const TEXT* string, ISC_STATUS status)

Callers 1

eventWaitMethod · 0.85

Calls 1

fflushFunction · 0.85

Tested by

no test coverage detected