demo/splash-screen/splash-screen.cpp
w32::dword watch ( void * context )
    {
            // Usy synchronous calls to list changes.
        w32::mt::ManualResetEvent& done =
            *reinterpret_cast< w32::mt::ManualResetEvent* >(context);
        w32::fs::Changes changes(".", w32::fs::Changes::Filter::all());
        
            // Make handle set for wait notification.
        w32::Waitable::Set handles;
        handles |= changes.handle();
        handles |= done.handle();
        
            // Log all changes until requested to exit.
        for ( ; (w32::Waitable::any(handles) == 0); changes.next() ) {
            std::cout << "Something changed!" << std::endl;
        }

        return (0);
    }
// Background thread watching changes in the current directory.
Background thread watching changes in the current directory.
Background thread watching changes in the current directory .
w32::dword watch ( void * context )
    {
        w32::mt::ManualResetEvent& done =
            *reinterpret_cast< w32::mt::ManualResetEvent* >(context);
        w32::fs::Changes changes(".", w32::fs::Changes::Filter::all());
        w32::Waitable::Set handles;
        handles |= changes.handle();
        handles |= done.handle();
        for ( ; (w32::Waitable::any(handles) == 0); changes.next() ) {
            std::cout << "Something changed!" << std::endl;
        }
        return (0);
    }
w32 :: dword watch ( void * context ) { w32 :: mt :: ManualResetEvent & done = * reinterpret_cast < w32 :: mt :: ManualResetEvent * > ( context ) ; w32 :: fs :: Changes changes ( " " , w32 :: fs :: Changes :: Filter :: all ( ) ) ; w32 :: Waitable :: Set handles ; handles |= changes . handle ( ) ; handles |= done . handle ( ) ; for ( ; ( w32 :: Waitable :: any ( handles ) == 0 ) ; changes . next ( ) ) { std :: cout << " " << std :: endl ; } return ( 0 ) ; }
Background thread watching changes in the current directory.
Background thread watching changes in the current directory .
// Usy synchronous calls to list changes. // Make handle set for wait notification. // Log all changes until requested to exit.