Skip to content

Commit 45d277d

Browse files
committed
more notes
1 parent fbceda0 commit 45d277d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

r/adbcdrivermanager/src/async.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,14 @@ class Task {
6060
}
6161
};
6262

63-
// A thread-safe queue of callbacks to execute
63+
// A thread-safe queue of callbacks to execute.
6464
class CallbackQueue {
6565
public:
66-
// Because it is used in C++ frames where a longjmp may occur,
66+
// Because the RCallback is used in C++ frames where a longjmp may occur,
6767
// the members of this struct must be trivially destructible:
6868
// Any destruction that needs to occur must occur via an SEXP
69-
// finalizer set on the return_value_xptr.
69+
// finalizer set on the return_value_xptr. This struct is intentionally
70+
// copyable and is passed by value.
7071
struct RCallback {
7172
// An environment containing a function named "callback". This callback
7273
// is executed as callback(return_code, error_xptr, return_value_xptr). The

0 commit comments

Comments
 (0)