comp.lang.ada
 help / color / mirror / Atom feed
From: Brian Kolden <bakolden5@gmail.com>
Subject: Re: A Simpler Find Tool
Date: Sun, 21 May 2017 20:19:20 -0700 (PDT)
Date: 2017-05-21T20:19:20-07:00	[thread overview]
Message-ID: <c0b17453-efc7-464d-827e-682d85c45aba@googlegroups.com> (raw)
In-Reply-To: <lyfufyso04.fsf@pushface.org>

> Just how many threads are you expecting to have? Is it worth saving some
> cycles here?

It's being called almost constantly, so yes.
 
> You could have a queue of Ready threads, pop a thread when required,
> push when done. That would allow you to have an entry, which would save
> the polling?
> 
>    entry Get (A_Thread : out Thread_Access) when Queue.Head /= null
>    is

I don't know why I didn't think to do that. It's using a stack now.


  reply	other threads:[~2017-05-22  3:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-21  5:04 A Simpler Find Tool Brian Kolden
2017-05-21  6:49 ` Simon Wright
2017-05-22  3:19   ` Brian Kolden [this message]
2017-05-21  9:44 ` G.B.
2017-05-21 17:22 ` Jeffrey R. Carter
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox