Changeset: 37c18d8f5a36 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=37c18d8f5a36
Modified Files:
gdk/gdk_utils.c
Branch: default
Log Message:
Remove superfluous check.
GDK_find_thread just did the same thing, and GDKthreads cannot have
changed since then since we hold the lock.
diffs (17 lines):
diff --git a/gdk/gdk_utils.c b/gdk/gdk_utils.c
--- a/gdk/gdk_utils.c
+++ b/gdk/gdk_utils.c
@@ -1258,13 +1258,6 @@ THRnew(const char *name)
s = GDK_find_thread(pid);
if (s == NULL) {
for (s = GDKthreads, t = s + THREADS; s < t; s++) {
- if (s->pid == pid) {
- MT_lock_unset(&GDKthreadLock);
- IODEBUG fprintf(stderr, "#THRnew:duplicate "
SZFMT "\n", (size_t) pid);
- return s;
- }
- }
- for (s = GDKthreads, t = s + THREADS; s < t; s++) {
if (s->pid == 0) {
break;
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list