Welcome, Guest. Please login or register.
Amiga Kit Amiga Store Iridium Banner AMIStore App Store A1200/A600 4xIDE Interface

AuthorTopic: Fake seglist in C...  (Read 3180 times)

0 Members and 1 Guest are viewing this topic.

Offline nyteschayde

  • VIP / Donor - Lifetime Member
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 638
  • Total likes: 2
    • http://www.nyteshade.com
Re: Fake seglist in C...
« Reply #30 on: March 10, 2013, 07:33:20 PM »
All of this is incredibly helpful. Thank you so much for your time. It showed me that, yes, you can use FindTask(NULL) with processes. It also showed me that, as I had wondered, there is a wait to stop the flow until the message comes through the port. It's a roundabout way to get things done compared to modern programming but it clearly works. Thanks again!
Senior MTS Software Engineer with PayPal
Amigas: A1200T 060/603e PPC • A1200T 060 • A4000D 040 • A3000 (x2) • A2000 Vamp/V2 • A1200 (x4) • A1000 (x3) • A600 Vamp/V1 • A500
 

Offline Karlos

Re: Fake seglist in C...
« Reply #31 on: March 11, 2013, 09:40:45 AM »
Quote from: nyteschayde;728748
All of this is incredibly helpful. Thank you so much for your time. It showed me that, yes, you can use FindTask(NULL) with processes. It also showed me that, as I had wondered, there is a wait to stop the flow until the message comes through the port. It's a roundabout way to get things done compared to modern programming but it clearly works. Thanks again!


Hey, just saw this thread :)

Yes, FindTask(NULL) works since an exec.library struct Task forms the beginning part of your typical dos.library struct Process.

I wrote a C++ java-esque Thread/Runnable class system based around Process, but it's not great from an AmigaOS style compliance perspective. Also, it proved impossible to port to OS4 since as the native gcc is compiled with the single thread model. Works fine in the old 2.95.3 with threadsafe.lib on 68K/OS3 however.

I'm sure it is full of bad stuff though.
int p; // A
 

Offline nyteschayde

  • VIP / Donor - Lifetime Member
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 638
  • Total likes: 2
    • http://www.nyteshade.com
Re: Fake seglist in C...
« Reply #32 on: March 11, 2013, 05:50:38 PM »
Karol's, I'd love to see it if you have it still. Hope all has been treating you well.
Senior MTS Software Engineer with PayPal
Amigas: A1200T 060/603e PPC • A1200T 060 • A4000D 040 • A3000 (x2) • A2000 Vamp/V2 • A1200 (x4) • A1000 (x3) • A600 Vamp/V1 • A500