Saturday, June 22, 2013
What every programmer should know about memory
http://lwn.net/Articles/250967/
Software optimization resources
http://www.agner.org/optimize/
Friday, May 31, 2013
Thursday, May 30, 2013
Multithreading in FLTK
The very smart way:
http://www.fltk.org/doc-1.3/advanced.html
int main() {
Fl::lock();
/* run thread */
while (Fl::wait() > 0) {
if (Fl::thread_message()) {
/* process your data */
}
}
}
//////////////
void *msg; // "msg" is a pointer to your message
Fl::awake(msg); // send "msg" to main thread
//////////////
void do_something(void *userdata) {
// running with the main thread
}
// running in another thread
void *data; // "data" is a pointer to your user data
Fl::awake(do_something, data); // call something in main thread
Thursday, May 2, 2013
Tuesday, April 30, 2013
Linux low-level GUI graphics
X11: xlib for window and events, XCB for low-level asynchronous, XRender extension for modern 2D graphics, Xft library for fonts rendering.
More to read:
http://blog.mecheye.net/2012/06/the-linux-graphics-stack/
Monday, March 18, 2013
Friday, February 15, 2013
Subscribe to:
Posts (Atom)