[comp.sys.amiga] ID-handler - unique-number gene

hamilton@uxc.cso.uiuc.edu.UUCP (06/19/87)

qix@ihlpa says:
> What I should have said was that it is possible to
> obtain the same process ID twice (a process could go away and another
> might *happen* to be allocated with the same MsgPort address).

    ah, you want a name whose uniqueness outlives the process that
created it.
    this is not to detract from the usefulness of your id: device,
but were you aware of the uniqueness feature built into timer.device's
TR_GETSYSTIME command?  the time returned is guaranteed to be different
each time it is obtained.  it has the advantage of being easily used
by "mere" tasks as well as processes.
    'course, you could easily turn the id-handler into id.device...

	wayne hamilton
	U of Il and US Army Corps of Engineers CERL
UUCP:	{ihnp4,seismo,pur-ee,convex}!uiucuxc!hamilton
ARPA:	hamilton@uxc.cso.uiuc.edu	USMail:	Box 476, Urbana, IL 61801
CSNET:	hamilton%uxc@uiuc.csnet		Phone:	(217)333-8703
CIS:    [73047,544]			PLink:  w hamilton