Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C - C++ Learning > Is there a way ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 4049 of 4217
Post > Topic >>

Is there a way to find out which object called another?

by "philipp.fehre@[EMAIL PROTECTED] " <philipp.fehre@[EMAIL PROTECTED] > Mar 6, 2008 at 02:31 AM

Hi!
I just ran into a problem, I need to find out which object called
another object so the proper code can be run.
I'm implementing a rudimentary scheduler for software tasks.
1. I got a couple of run queues (which a pretty much vectors)
2. I got tasks which are bound to those run queues (each task only to
1 queue)
3. the scheduler is called every time a task stalls, and then needs to
do rescheduling (changing the order in the run queue, adding or
removing tasks)

My problem now is that the scheduler is only supposed to modifiy the
run queue in which the task is present which called the scheduler. Is
that possible? I know which tasks are in which run queue so I would
just need some sort of handle to the calling task to look it up.

Thanks for any help :)

great group btw learned so much so far just while reading posts :)
 




 3 Posts in Topic:
Is there a way to find out which object called another?
"philipp.fehre@[EMAI  2008-03-06 02:31:40 
Re: Is there a way to find out which object called another?
Bart van Ingen Schenau &l  2008-03-06 18:40:07 
Re: Is there a way to find out which object called another?
"philipp.fehre@[EMAI  2008-03-06 12:30:17 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 13:41:42 CDT 2008.