Wine, WineLib and "Programming Windows 95"





2.12.1. Chapter 14 - bigjob1

Last updated: 2001/2/4

Description

Demonstrates the use of a background thread to perform long calculations. A left-click starts the background thread and a right-click stops it.

Wine tests

Winelib tests

Tested API

2.12.2. Chapter 14 - bigjob2

Last updated: 2003/5/4

Description

Same as bigjob1 but instead of communicating with the background thread via a shared boolean variable, bigjob2 uses an Event object.

Wine tests

Winelib tests

Tested API

2.12.3. Chapter 14 - multi1

Last updated: 2001/2/4

Description

Simulates multi-threading by using a timer. Creates a window which is divided into four parts. From top left to bottom right, these contain: an increasing series of numbers, the list of prime numbers, the fibonacci series (which they quickly wrap to zero), and circle of a random radius.

Wine tests

Winelib tests

Tested API

2.12.4. Chapter 14 - multi2

Last updated: 2003/5/4

Description

Same as multi1 but based on threads. Note that when you move the window the processing continues, eventhough the display may no longer be updated. That's because moving the window only suspends the first thread, the one with the message loop - the one which was doing all the work in multi1, and not the other threads.

Wine tests

Winelib tests

Tested API

2.12.5. Chapter 14 - rndrctmt

Last updated: 2003/5/4

Description

Same as the randrect example in chapter 4 (displays random rectangles in a window) but with a separate thread to handle drawing the rectangles.

Wine tests

Winelib tests

Tested API

fgouget@free.fr This page is hosted for free by Free.fr