diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-01-18 03:05:54 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-01-20 19:12:14 +0200 |
commit | 8034af7423e0b9f00c84eaa00cd095dbcf44f4a5 (patch) | |
tree | d5dcc2f44dfd54375304049ac31f7d4ef7832ef5 /Documentation/contributing.rst | |
parent | 9977fc3fcbfa0a6aaab04118fc67f0b9b9627570 (diff) |
libcamera: bound_method: Avoid deadlock with ConnectionTypeBlocking
ConnectionTypeBlocking always invokes the method through inter-thread
message passing, which results in deadlocks if the sender and receiver
live in the same thread. The deadlock can easily be avoided by turning
the invocation into a direct call in this case. Do so to make
ConnectionTypeBlocking easier to use when some of the senders live in
the same thread as the receiver while the other senders don't.
Extend the object-invoke test to cover this usage.
While at it reformat the documentation to avoid long \brief lines.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'Documentation/contributing.rst')
0 files changed, 0 insertions, 0 deletions