Re: Is there some kind of Blocking Queue for D?

2025-07-10 Thread Ali Çehreli via Digitalmars-d-learn
On 7/10/25 7:28 AM, Bienlein wrote: > some blockinglist wrapper around slist I would try std.concurrency first because its message queue is a blocking queue anyway if you limit the size with setMaxMailboxSize(). I have some examples of std.concurrency here: https://ddili.org/ders/d.en/conc

Re: Is there some kind of Blocking Queue for D?

2025-07-10 Thread Andy Valencia via Digitalmars-d-learn
On Thursday, 10 July 2025 at 14:28:31 UTC, Bienlein wrote: Thanks, Jonathan. The send and receive functions might do the job for some specific purpose, but I would like to have some general blockinglist class like an abstract data type. It sounds like you have in mind shared memory coding tech

Re: Is there some kind of Blocking Queue for D?

2025-07-10 Thread Bienlein via Digitalmars-d-learn
Thanks, Jonathan. The send and receive functions might do the job for some specific purpose, but I would like to have some general blockinglist class like an abstract data type. I'm following the D forum for quite a while, but have so far only written little code in D mostly in order to better

Re: Is there some kind of Blocking Queue for D?

2025-07-10 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, July 10, 2025 3:22:30 AM Mountain Daylight Time Bienlein via Digitalmars-d-learn wrote: > Hello, > > I'm looking for some kind of blocking queue for D, that is if the > queue is empty the thread doing a take on the queue is blocked > until an item has been added to the queue. Couldn't

Is there some kind of Blocking Queue for D?

2025-07-10 Thread Bienlein via Digitalmars-d-learn
Hello, I'm looking for some kind of blocking queue for D, that is if the queue is empty the thread doing a take on the queue is blocked until an item has been added to the queue. Couldn't find anything in the standard library. Thank you, Oliver

Re: result of FFT

2025-07-10 Thread claptrap via Digitalmars-d-learn
On Tuesday, 8 July 2025 at 18:11:27 UTC, Matthew wrote: Hi, I'm writing a program where I'm trying to decode DTMF tones. I already completed the wave file decoder and I know I'm supposed to use an FFT to transform the samples from time domain to frequency domain but I'm stuck on determining w