FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
Architecture & Design
Email
Print
Reprint

add to:
Del.icio.us
Digg
Google
Furl
Slashdot
Y! MyWeb
Blink
April 01, 2000

Garbage Collection on the Run

(Page 2 of 5)
Apr00: Garbage Collection on the Run


/* [From our public header files: just hand us a pointer!]
 * Under WinNT/9x this defaults to gcMSWinIdleTest; otherwise
 * it starts null and must be aimed by the user. Only used by 
 * gcAttemptCollection and gcEnablePseudoIncremental. */
GC_API_VAR gcIdleTestFunction gcIdleTest;
 ...
/* Some sample idle test functions */
GC_API_FUN_DEF(int) gcXIdleTest(void)
{
    return !XEventsQueued( display, QueuedAfterFlush );
}
GC_API_FUN_DEF(int) gcMSWinIdleTest(void)
{
    MSG msg;
    return !PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE);
}

Example 1: An idle test function.

Previous Page | 1 | 2 | 3 | 4 | 5 Next Page
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK