pitrou commented on code in PR #13635:
URL: https://github.com/apache/arrow/pull/13635#discussion_r926875478


##########
r/src/safe-call-into-r.h:
##########
@@ -41,111 +49,188 @@
 // SafeCallIntoR<cpp_type>([&]() { ... }).
 class MainRThread {
  public:
-  MainRThread() : initialized_(false), executor_(nullptr) {}
+  MainRThread() : initialized_(false), executor_(nullptr), 
stop_source_(nullptr) {}
 
   // Call this method from the R thread (e.g., on package load)
   // to save an internal copy of the thread id.
   void Initialize() {
     thread_id_ = std::this_thread::get_id();
     initialized_ = true;
-    SetError(R_NilValue);
+    ResetError();
+    arrow::ResetSignalStopSource();

Review Comment:
   :-D



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to