Skip Nav
Home » Forums » SystemC Forum

Icon - KMLM List KMLM List

View email archives for the history of this mailing list.

List Home All Archives Dates Threads Authors Subjects
systemc-forum - Help with sc_spawn() Message Thread: Previous | Next
  • To: "systemc-forum@xxxxxxxxxxxxxxxxxxx" <systemc-forum@xxxxxxxxxxxxxxxxxxx>
  • From: Suhas Satya <suhas.satya@xxxxxxxxx>
  • Date: Sun, 19 Feb 2012 13:27:54 +0000 (GMT)
Send Email to
Send new message
Reply to this message
Hello all,

I have been trying to use sc_spawn() in my project. I could use it with simple examples but the problem I have been facing while using it with me project is:

The function I am trying to spawn is a global function. One of the parameters to this function is the reference to an object of a template class. The parameters to this template are decided within the same class(es) which spawn the global function. Hence the issue that I am not able to figure out how I can have this parameter visible to the global function, when the template parameter to the object is only decided within the same class which spawns the global function, itself.

I was wondering if there was a workaround? May be through inheritance or some other way to treat the function to be spawned as non-global? I request you all for your opinions and possible solutions. I can post some sample code, if required. Looking forward to your kind responses.

Thank you all and Regards

By Date: Previous | Next Current Thread By Thread: Previous | Next