Author: wyoung
Date: Thu Jan 3 18:58:32 2008
New Revision: 2085
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2085&view=rev
Log:
Added cpoolw to userman in new threading chapter
Modified:
trunk/Wishlist
trunk/doc/userman/Makefile
trunk/doc/userman/userman.dbx
Modified: trunk/Wishlist
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/Wishlist?rev=2085&r1=2084&r2=2085&view=diff
==============================================================================
--- trunk/Wishlist (original)
+++ trunk/Wishlist Thu Jan 3 18:58:32 2008
@@ -5,15 +5,6 @@
below: any time you must hand-roll some SQL code in your program,
consider whether it could be reduced to an API feature that would be
widely useful. Patches or proposals of this sort are always welcome.
-
-
-v3.0 Plan
----------
- o Create examples/vstudio/threads to test new thread-related
- features. Only VC++ since every other platform has the
- possibility of building without thread support. Then work
- it into userman's threads chapter, which already has a stub
- for this.
v3.1 Tentative Plan
Modified: trunk/doc/userman/Makefile
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/doc/userman/Makefile?rev=2085&r1=2084&r2=2085&view=diff
==============================================================================
--- trunk/doc/userman/Makefile (original)
+++ trunk/doc/userman/Makefile Thu Jan 3 18:58:32 2008
@@ -22,11 +22,11 @@
COMMON_SS=common.xsl
FO_SS=fo.xsl
HTML_SS=html.xsl
-EX_TXT=cgi_jpeg.txt ssqls1.txt ssqls2.txt ssqls3.txt ssqls4.txt \
- ssqls5.txt deadlock.txt fieldinf.txt for_each.txt \
+EX_TXT=cgi_jpeg.txt cpoolw.txt deadlock.txt fieldinf.txt for_each.txt \
load_jpeg.txt multiquery.txt resetdb.txt simple1.txt \
- simple2.txt simple3.txt stock.txt store_if.txt tquery1.txt \
- transaction.txt
+ simple2.txt simple3.txt ssqls1.txt ssqls2.txt ssqls3.txt \
+ ssqls4.txt ssqls5.txt stock.txt store_if.txt tquery1.txt \
+ transaction.txt
## ------------------------
Modified: trunk/doc/userman/userman.dbx
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/doc/userman/userman.dbx?rev=2085&r1=2084&r2=2085&view=diff
==============================================================================
--- trunk/doc/userman/userman.dbx (original)
+++ trunk/doc/userman/userman.dbx Thu Jan 3 18:58:32 2008
@@ -2669,13 +2669,16 @@
<para>Here is an example showing how to use connection pools with
threads on Windows:</para>
- <!-- FIXME: CPOOL EXAMPLE GOES HERE -->
-
- <para>We show a Windows-only example here because only the native
- Windows versions of MySQL++ come out of the box ready to be used
- with threads. However, you should be able to reuse the key part of
- the example, the <classname>ConnectionPool</classname> derivative,
- in programs on other platforms without any trobule.</para>
+ <programlisting><xi:include href="cpoolw.txt" parse="text"
+ xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting>
+
+ <para>We show a Windows-only example here because only the
+ native Windows versions of MySQL++ come out of the box ready to
+ be used with threads. There is also a POSIX threads version in
+ <filename>examples/cpoolp.cpp</filename> for comparison. It should
+ work on most any modern Unixy type system, but see the instructions
+ in <filename>README-Unix.txt</filename> for information on enabling
+ threads; they're only enabled by default on Windows.</para>
<para>Beware, connection pools only work correctly with threads if
you build MySQL++ with thread support, as described in the previous
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits