aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-06-18 16:20:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-06-18 16:20:04 +0200
commitbc41469ad35c0c0be8729f7323420187c1a31364 (patch)
tree68cbb1f266a2372bf8950d75baec9bba6a028dc2 /doc
parent285a5f5af63a21d98758e065f2456fc39a3f4bc5 (diff)
Add argument to session ctor that indicates whether to make it current
Diffstat (limited to 'doc')
-rw-r--r--doc/manual.xhtml11
1 files changed, 6 insertions, 5 deletions
diff --git a/doc/manual.xhtml b/doc/manual.xhtml
index 5552657..73b4e61 100644
--- a/doc/manual.xhtml
+++ b/doc/manual.xhtml
@@ -8402,7 +8402,7 @@ namespace odb
class session
{
public:
- session ();
+ session (bool make_current = true);
~session ();
// Copying or assignment of sessions is not supported.
@@ -8448,10 +8448,11 @@ namespace odb
}
</pre>
- <p>The session constructor creates a new session and sets it as a
- current session for this thread. If we try to create another
- session while there is already a current session in effect,
- the constructor throws the <code>odb::already_in_session</code>
+ <p>The session constructor creates a new session and, if the
+ <code>make_current</code> argument is <code>true</code>, sets it as a
+ current session for this thread. If we try to make a session current
+ while there is already another session in effect for this thread,
+ then the constructor throws the <code>odb::already_in_session</code>
exception. The destructor clears the current session for this
thread if this session is the current one.</p>