HAI!
I am creating a file manager for Linux. I need to run iNotify while my app is running..
When it runs, it either runs my app, or inotify. but it cant run both. here is my code...
...
void inotify_check (void*) {
...
}
...
int main () {
...
sf::Thread Thread(&inotify_check);
while (running) {
...
Thread.Launch();
...
}
...
}
When I do this.. the thread runs, but it won't proccess the main part of the app.
I also tried this...
...
void inotify_check (void*) {
...
}
...
int main () {
...
sf::Thread Thread(&inotify_check);
while (running) {
...
Thread.Launch();
...
Thread.Terminate();
}
...
}
But this keeps returning the error "Failed to create thread"
KTHXBYE!