Merge branch 'develop' into 'develop'

msvc: Compare thread id instead of handlers to check if it is already registered.

See merge request !42
This commit is contained in:
Daniel Kochmański 2017-01-10 09:56:12 +00:00
commit d7ca24c3fd

View file

@ -363,7 +363,9 @@ ecl_import_current_thread(cl_object name, cl_object bindings)
cl_index i, size;
for (i = 0, size = processes->vector.fillp; i < size; i++) {
cl_object p = processes->vector.self.t[i];
if (!Null(p) && p->process.thread == current)
if (!Null(p)
&&
GetThreadId(p->process.thread) == GetThreadId(current))
return 0;
}
}