File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
6464class 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
You can’t perform that action at this time.
0 commit comments