From: <sv...@ww...> - 2004-07-17 16:33:40
|
Author: mkrose Date: 2004-07-17 09:33:34 -0700 (Sat, 17 Jul 2004) New Revision: 1158 Added: trunk/CSP/SimData/Include/SimData/CircularBuffer.h trunk/CSP/SimData/Include/SimData/ThreadUtil.h Modified: trunk/CSP/SimData/CHANGES.current trunk/CSP/SimData/Include/SimData/BufferPool.h trunk/CSP/SimData/Include/SimData/Thread.h trunk/CSP/SimData/Include/SimData/ThreadBase.h trunk/CSP/SimData/Source/SConscript trunk/CSP/SimData/Source/ThreadBase.cpp trunk/CSP/SimData/setup.py Log: Moved non-pthread specific threading support classes from ThreadBase.h to ThreadUtil.h. Minor tweaks to the Thread api to allow preconstructed tasks to be attached to a thread. Tweak to BufferPool to provide optional mutex locking. Added a ring queue and a circular buffer class. The former is still rough and largely untested. The latter has been tested extensively (unit test coming soon). See the header file for docs on what they do and how to use them (nb: ring queue is still under-documented). Browse at: https://www.zerobar.net/viewcvs/viewcvs.cgi?view=rev&rev=1158 Diff omitted (24046 bytes). |