erlgtk config + new erl_interface = pthread-related errors?

Chris Pressey <>
Wed Aug 27 04:46:02 CEST 2003


On 27 Aug 2003 01:26:43 +0200
Kent Boortz <> wrote:

> Chris Pressey <> writes:
> > Another issue turned up: ERL_MAX_COUNT is no longer defined anywhere
> > in the erl_interface include files.  I just patched the old #define
> > into gtk_drv.c and it seems to work fine.  Was this omission an
> > oversight, or is there a different way to do this that gtk_drv.c
> > should be using instead?
> 
> I can't find it used or documented anywhere, for what do you use it
> and where did you find documentation about ERL_MAX_COUNT?

erl_interface-3.3.2/include/erl_eterm.h:#define ERL_MAX_COUNT 0xffffff

It's used in the erlgtk driver (gtk_drv.c) like so:

  #define ETERM_REF(e) do { \
    if (ERL_COUNT(e) < ERL_MAX_COUNT) \
      ERL_COUNT(e)++; \
  } while(0)

ERL_COUNT is still defined in erl_interface-3.4.

I haven't found any documentation on any of this yet, either - and
you'll have to ask Tony about how it's used in erlgtk.  I'm just trying
to port it :)

-Chris



More information about the erlang-questions mailing list