IRC Log Viewer » #firebreath » 2012-02-11

IRC Nick Time (GMT-7) Message
linearray 09:02 omg
firebreath does have inconsistent naming
e.g. eventName vs. event_name
I guess we have to throw everything away and start anew
reichi 09:02 absolutley!
taxilian 14:02 linearray: feel free to fix what you can and submit pull requests ;-) I am terrible at naming things :-P
linearray 14:02 hehe my own project is inconsistent
that's why I wanted to use whatever FB uses
but no luck there either
Binbo 15:02 got someone here?
taxilian 15:02 .ask
FireBreathBot 15:02 If you need help, just ask your question and wait for people to come back.
Binbo 15:02 if i run a function in another thread
and inside the function theres function
*functions
those functions executed at the same time?
taxilian 15:02 I don't understand your question; when you say "run a function" are you referring to calling something in javascript or just a regular c++ function?
Binbo 15:02 in c++
taxilian 15:02 so this is a C++ question, not a plugin question?
Binbo 15:02 if you do not mind to answer =p
i need to know if these functions has completed so i can do asyncpost
taxilian 16:02 well, I don't really have time to explain c++ threads in detail, but yes, they can all run simultaneously
which means you have to be very careful accessing variables that may be used in multiple threads
and watch your lifecycle
I recommend you use boost::thread for creating and managing the threads
and the async javascript calls post has a lot of the basics on it
but thread safety is a real tricky issue, truly and legitimately
Binbo 16:02 whats data type supported for asyncpost?
taxilian 16:02 !find asyncpost
FireBreathBot 16:02 Could not find any tags matching asyncpost
taxilian 16:02 !find AsyncPost
FireBreathBot 16:02 Found 1 possible matches. Displaying 1
/^FB::SimpleStreamHelperPtr FB::SimpleStreamHelper::AsyncPost( const FB::BrowserHostPtr& host, const FB::URI& uri, const std::string& postdata, $/ (f) found in src/PluginCore/SimpleStreamHelper.cpp: http://goo.gl/oyk2l
taxilian 16:02 !find HttpCallback
FireBreathBot 16:02 Found 1 possible matches. Displaying 1
/^ typedef boost::function<void (bool, const FB::HeaderMap&, const boost::shared_array<uint8_t>&, const size_t)> HttpCallback;$/ (t) found in src/PluginCore/SimpleStreamHelper.h: http://goo.gl/tEjUs