Amiga.org
Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: Jose 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:
-
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
-
Excellent! I'll use that 8-)