On Mon, Jul 12, 2010 at 01:59:30PM -0500, Nicolas Williams wrote: > The result is that you end up with a tiny penalty for fork > detection: two loads, a compare and a likely-not-taken branch.
Actually three loads, two compares and two likely-not-taken branch, unless you know you always have pthread_atfork() available at run-time (as in Solaris 10 and up, whih is what I had in mind when I wrote the above), in which case you can make this two loads, one compare and one likely-not-taken branch. Nico -- _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users