From: Date: October 25 2007 6:51pm Subject: RE: Sample files -- BadQuery w/Errnum patch part 4 List-Archive: http://lists.mysql.com/plusplus/7135 Message-Id: <5AA52B773286DA4E83B1F2D034FFED3763BDEF@mailexchange.klausatlanta.local> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =20 > -----Original Message----- > From: Warren Young [mailto:mysqlpp@stripped]=20 >=20 > I think we don't want the example to succeed. It's=20 > intentionally demonstrating a programming bug, so it should fail. Point taken. > If we get rid of the loop and maybe add another pause point,=20 > is the only difference the order of lock acquisition? If so,=20 > you could just add an option to examples/cmdline.cpp to=20 > switch between the modes. It could be just a generic "mode=20 > switch" (-m?) taking an integer that means something only to=20 > some programs. To examples/deadlock, -m1 says to acquire=20 > lock1 first, and -m2 lock2. All other programs can ignore it=20 > for now. The value can go in a global variable, like dtest_mode. That'll work. Want me to update the samples and resend them?