Welcome, Guest. Please login or register.

Author Topic: Advice on how to add more info to a timer request...  (Read 1001 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2869
    • Show only replies by Jose
Advice on how to add more info to a timer request...
« on: August 29, 2005, 04:18:58 PM »
Hi. I'm planning to create timerequests to each function I lauch as a separate process, and I want to associate each time request to each function so that I can recognize the function they were attached to when they return.

Instead of creating a linked list with function and timerequest entries I thought I could add some info on the timerequest itself. Any suggestions ? I could extend the timerequest structure using AllocMem to a slightly bigger size and then copying an already created and initialized timerequest to there. Any better idea ? I suppose using CreateIORequest/ CreateExternalIO to create each request is impossible if I want to achieve that...

:pint:

\\"We made Amiga, they {bleep}ed it up\\"
 

Offline Thomas

Re: Advice on how to add more info to a timer request...
« Reply #1 on: August 29, 2005, 05:16:53 PM »

CreateIORequest takes the size of the structure you want to allocate. So you can give it the size of the timerrequest plus the amount you want to add and you get the same result as AllocMem + copy.

Bye,
Thomas

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2869
    • Show only replies by Jose
Re: Advice on how to add more info to a timer request...
« Reply #2 on: August 29, 2005, 05:35:31 PM »
Excellent! I'll use that 8-)
\\"We made Amiga, they {bleep}ed it up\\"