Welcome, Guest. Please login or register.

Author Topic: Fake seglist in C...  (Read 7177 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16867
  • Country: gb
  • Thanked: 4 times
    • Show all replies
Re: Fake seglist in C...
« 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