You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -263,3 +263,9 @@ an array of tuples as value in response to `select`. So, in order to
263
263
successfully decode them, we should pass an array of tuples to decoder - that's
264
264
why `std::vector<UserTuple>` is needed. If decoding was successful, `results`
265
265
will contain all decoded `UserTuples`.
266
+
267
+
## Multi-Threading Model
268
+
269
+
A `Connector` object and all its instances of `Connection` must be used in a single thread. For multi-threaded usage, one can create one or several `Connector` instances for each thread. Let me remind you that each `Connection` must be used only with `Connector` that has created it.
270
+
271
+
If one uses his own `Buffer` or `NetProvider` implementations in scenario with multi-threaded `Connector`, the must not share any state (must not have `static` fields, for example).
0 commit comments