From: Andrei Alexandrescu <aalexandre@fb.com>
Date: Tue, 24 Feb 2015 21:09:36 +0000 (-0800)
Subject: Removing call to google::setThreadName from FunctionScheduler
X-Git-Tag: v0.27.0~18
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2d16074880202b414b7c6351a24590fcc9bd7026;p=folly.git

Removing call to google::setThreadName from FunctionScheduler

Summary: Funnily, google::setThreadName is Facebook specific: it's introduced only in the FB build of glog. This diff removes the call because folly should not depend on FB's glog.

Test Plan: made sure the line was deleted

Reviewed By: ldbrandy@fb.com

Subscribers: net-systems@, folly-diffs@, yfeldblum

FB internal diff: D1868249

Tasks: 6345935

Signature: t1:1868249:1424812595:2a084754d614ab9b7b6168454f33638882e3f6db
---

diff --git a/folly/experimental/FunctionScheduler.cpp b/folly/experimental/FunctionScheduler.cpp
index 24667fca..78b0aeeb 100644
--- a/folly/experimental/FunctionScheduler.cpp
+++ b/folly/experimental/FunctionScheduler.cpp
@@ -189,7 +189,6 @@ void FunctionScheduler::run() {
 
   if (!threadName_.empty()) {
     folly::setThreadName(threadName_);
-    google::setThreadName(threadName_);
   }
 
   while (running_) {