[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Current trunk aborts with MinGW

From: Eli Zaretskii
Subject: Re: Current trunk aborts with MinGW
Date: Tue, 30 Sep 2014 20:41:22 +0300

> Date: Tue, 30 Sep 2014 17:57:46 +0200
> From: martin rudalics <address@hidden>
> CC: address@hidden
>  > We could also add a test to functions which allocate memory for Lisp
>  > objects that they are called in the main thread.  Patches for that are
>  > welcome.
> Very welcome, indeed.

The thread ID of the main thread is recorded in the variable
dwMainThreadId, and the ID of the current thread can be obtained by
calling GetCurrentThreadId.  If dwMainThreadId is zero, it either was
not yet initialized, or we are running in batch mode, where this
variable is never set (because Emacs runs single-threaded in batch
mode); in both cases, the test should be bypassed.

I think using the above info, adding such a test should be easy.
Volunteers are welcome.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]