You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/03/15 15:39:24 UTC

[GitHub] [arrow] pitrou commented on a change in pull request #12633: ARROW-15929: [R] io_thread_count is actually the CPU thread count

pitrou commented on a change in pull request #12633:
URL: https://github.com/apache/arrow/pull/12633#discussion_r827123086



##########
File path: r/R/config.R
##########
@@ -26,7 +26,9 @@ cpu_count <- function() {
 #' @param num_threads integer: New number of threads for thread pool
 #' @export
 set_cpu_count <- function(num_threads) {
+  current_cpu_count <- cpu_count()
   SetCpuThreadPoolCapacity(as.integer(num_threads))
+  invisible(current_cpu_count)

Review comment:
       Out of curiosity, what does `invisible` do?




-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org