Changeset: 402c13fb3f04 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/402c13fb3f04
Modified Files:
        clients/Tests/exports.stable.out
        gdk/gdk.h
        gdk/gdk_utils.c
Branch: default
Log Message:

Removed unused function THRget.


diffs (47 lines):

diff --git a/clients/Tests/exports.stable.out b/clients/Tests/exports.stable.out
--- a/clients/Tests/exports.stable.out
+++ b/clients/Tests/exports.stable.out
@@ -404,7 +404,6 @@ BAT *STRMPfilter(BAT *b, BAT *s, const c
 MT_Id THRcreate(void (*f)(void *), void *arg, enum MT_thr_detach d, const char 
*name);
 void *THRdata[THREADDATA];
 void THRdel(Thread t);
-Thread THRget(int tid);
 void *THRgetdata(int);
 int THRgettid(void);
 int THRhighwater(void);
diff --git a/gdk/gdk.h b/gdk/gdk.h
--- a/gdk/gdk.h
+++ b/gdk/gdk.h
@@ -1998,7 +1998,6 @@ typedef struct threadStruct {
 
 
 gdk_export int THRgettid(void);
-gdk_export Thread THRget(int tid);
 gdk_export MT_Id THRcreate(void (*f) (void *), void *arg, enum MT_thr_detach 
d, const char *name);
 gdk_export void THRdel(Thread t);
 gdk_export void THRsetdata(int, void *);
diff --git a/gdk/gdk_utils.c b/gdk/gdk_utils.c
--- a/gdk/gdk_utils.c
+++ b/gdk/gdk_utils.c
@@ -1613,7 +1613,6 @@ GDKms(void)
  *
  * The first action upon thread creation is to add it to the pool of
  * known threads. This should be done by the thread itself.
- * Subsequently, the thread descriptor can be obtained using THRget.
  * Note that the users should have gained exclusive access already.  A
  * new entry is initialized automatically when not found.  Its file
  * descriptors are the same as for the server and should be
@@ -1621,13 +1620,6 @@ GDKms(void)
  */
 void *THRdata[THREADDATA] = { 0 };
 
-Thread
-THRget(int tid)
-{
-       assert(0 < tid && tid <= THREADS);
-       return &GDKthreads[tid - 1];
-}
-
 #if defined(_MSC_VER) && _MSC_VER >= 1900
 #pragma warning(disable : 4172)
 #endif
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to