IRC Log Viewer » #firebreath » 2014-01-25

IRC Nick Time (GMT-7) Message
[Outcast] 10:01 Taxillian: I did it!!!!!
I most likely did a big "No,No" to do it.
taxilian 10:01 lol
oh?
[Outcast] 10:01 I had create a global pointer that hold a reference to an instance for a JSAPI. This will get set every time a my JSAPIAuto is constructed. This will only allow for the latest created JSAPIAuto object to get the output from the Python scripts
I will fix it on monday and create an array to will track thread to JSAPIAuto object to hopefully relieve the conflict.
so basically a dictionary of JSAPIAuto objects.
will most likely use a boost map.
since they are there.
taxilian 10:01 I hope that's a JSAPIWeakPtr and not a JSAPIPtr
and I *really* hope it's not just a raw pointer...
[Outcast] 10:01 it might be (*whisling*)
taxilian 10:01 well, I guess if you want a plugin that will most likely crash sometime, that's up to you
use the boost::shared_ptr and boost::weak_ptr correctly and it will safe you a lot of grief
remember never to store a shared_ptr globally
you'll get memory leaks
[Outcast] 10:01 I am going to need to do a boot map of weak pointers and use the thread id or keep track of what goes where.
I am going to need to do a boot map of weak pointers and use the thread id or keep track of what goes where.
I hope it is that simple.
taxilian 10:01 that's probably what I'd do; it may take some tweaking
[Outcast] 19:01 does firebreath use pthreads?
nevermind.
figured it out