Query: s3d_mainloop
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
S3D_MAINLOOP(3) s3d Manual S3D_MAINLOOP(3)NAMEs3d_mainloop - set mainloop of programSYNOPSIS#include <s3d.h> int s3d_mainloop(void(*)(void) f);DESCRIPTIONTakes a function as argument. It will loop this function until a quit-event is received. You can pass NULL if you have no function to be looped, but its better to sleep some time if you have nothing to do anyway to save cpu-time. void mainloop(void) { usleep(1000); // sleep 1 ms in every cycle } ... s3d_mainloop(mainloop());AUTHORSimon Wunderlich Author of s3d s3d S3D_MAINLOOP(3)
Related Man Pages |
---|
sleep(3) - osx |
usleep(3) - bsd |
sleep(3) - mojave |
usleep(3) - osf1 |
usleep(3c) - sunos |
Similar Topics in the Unix Linux Community |
---|
Adding the individual columns of a matrix. |
awk or sed - Convert 2 lines to 1 line |
How can I do this in VI editor? |
Is UNIX an open source OS ? |