Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill the unused xbt_os_thread_self_name()
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Sat, 5 Jan 2019 01:21:19 +0000 (02:21 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Sat, 5 Jan 2019 01:21:19 +0000 (02:21 +0100)
ChangeLog
include/xbt/xbt_os_thread.h
src/simix/smx_private.hpp
src/xbt/xbt_os_thread.c

index 2a0cb75..ad00e70 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -19,6 +19,10 @@ XBT:
    OsSemaphore is implemented in a portable way with C++11 threads.
    This should allow much more threads to be created at the same time,
    allowing Mac and Java users to simulate many more actors.
+ - Drop several unused xbt_os_thread_t functions:
+   - xbt_os_thread_get_extra_data()
+   - xbt_os_thread_set_extra_data()
+   - xbt_os_thread_self_name()
 
 Fixed bugs:
  - #261: Document the parameters of parallel execution's constructor
index 3d0a299..5c90354 100644 (file)
@@ -30,7 +30,6 @@ XBT_PUBLIC xbt_os_thread_t xbt_os_thread_create(const char* name, pvoid_f_pvoid_
 XBT_PUBLIC void xbt_os_thread_exit(int* retcode);
 
 XBT_PUBLIC xbt_os_thread_t xbt_os_thread_self(void);
-XBT_PUBLIC const char* xbt_os_thread_self_name(void);
 /* xbt_os_thread_join frees the joined thread (ie the XBT wrapper around it, the OS frees the rest) */
 XBT_PUBLIC void xbt_os_thread_join(xbt_os_thread_t thread, void** thread_return);
 XBT_PUBLIC void xbt_os_thread_setstacksize(int stack_size);
index 830a2f8..cab1416 100644 (file)
@@ -9,7 +9,6 @@
 #include "simgrid/s4u/Actor.hpp"
 #include "src/kernel/context/Context.hpp"
 #include "src/simix/ActorImpl.hpp"
-#include <xbt/xbt_os_thread.h>
 
 #include <boost/intrusive/list.hpp>
 #include <mutex>
index 411aa16..a84ba93 100644 (file)
@@ -202,12 +202,6 @@ void xbt_os_thread_setguardsize(int guard_size)
 #endif
 }
 
-const char *xbt_os_thread_self_name(void)
-{
-  xbt_os_thread_t me = xbt_os_thread_self();
-  return me ? (const char *)me->name : "main";
-}
-
 void xbt_os_thread_join(xbt_os_thread_t thread, void **thread_return)
 {
   int errcode = pthread_join(thread->t, thread_return);