Imperfect C++ |
Update to the code samples |
Updated: 24th October 2005
|
TSS Store API
Mistakenly, the Synesis TSS API was omitted from the CD. It's provided here.
The code archive ./tss.zip contains the following:
-
a small sub-set of the Synesis Software Public Domain Source Code Library (SSPDSCL),
located in ./test/include/sspdscl
-
a very small sub-set of the internal Synesis Software codebase - in fact,
just the one file MLTssStr.h - located in ./test/include/synesis-private
-
the implementation file - MLTssStr.cpp - of the TSS Store API - located in
./test/src
-
debug and release versions of the Synesis common module - MMCmnBas.dll and
MMCmnBaD.dll (and MMCmnBaD.pdb) - located in ./test/bin. The DLLs are
compatible with all versions of Visual C++ and Intel C/C++ (on Win32).
-
import libraries for the debug and release versions of the Synesis common
module - MMCmnBas.lib and MMCmnBaD.lib - located in ./test/lib.
The DLLs are compatible with all versions of Visual C++ and Intel C/C++ (on Win32).
-
test program for the TSS Store API, demonstrating its use with a multithreaded
scenario: 1 main thread that creates a TSS datum, and 10 worker threads that
do so 1000 times each. It is called tss_link_test.cpp, and is
located in ./test/tss_link_test. It must be compiled with multithreading
enabled, and linked with the requisite import library.
Note: the import libraries and DLLs provided are only compatible with
Intel C/C++ and Visual C++ on Win32. If you need a version for another compiler,
please place a request via the contact page
(http://synesis.com.au/publishing/imperfect/cpp/contact.php).
Note: The TSS API implementation file and the test file both need the
STLSoft libraries on the include path. The latest version can be obtained from
http://stlsoft.org/downloads.html.
Copyright © 2005 Synesis Software Pty Ltd. All rights reserved.