You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by GitBox <gi...@apache.org> on 2022/05/02 23:04:04 UTC

[GitHub] [trafficserver] SolidWallOfCode commented on a diff in pull request #8805: remove pthread_*specific and replace with thread_local

SolidWallOfCode commented on code in PR #8805:
URL: https://github.com/apache/trafficserver/pull/8805#discussion_r863248289


##########
iocore/eventsystem/I_EThread.h:
##########
@@ -85,6 +85,7 @@ enum ThreadType {
 class EThread : public Thread
 {
 public:
+  static thread_local EThread *this_ethread_ptr;

Review Comment:
   Bit of magic - if you do this
   ```
   static inline thread_local EThread *this_ethread_ptr = nullptr;
   ```
   then you don't need to declare it in the ".cc" file.



-- 
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@trafficserver.apache.org

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