Thread Cleanup

In many cases, CVL allocates internal memory for each thread in which CVL functions are called. This memory must be freed when the thread exits. Threads created by cfCreateThreadCVL() or cfCreateThreadMFC() perform this cleanup automatically. If you do not use one of these functions to create a thread, you must call cfThreadCleanup() as the last CVL call before the thread exits.