Search Results

Search: Posts Made By: prankster
9,419
Posted By prankster
1. Yes, I use cleanup_push and pop. Here is a...
1. Yes, I use cleanup_push and pop. Here is a part of my code:
void thread_cleanup(void* r) {
ARunnable* runnable = static_cast<ARunnable*>(r);
runnable->onClose();
delete runnable;
}
...
9,419
Posted By prankster
threads and memory allocation
Hello!
First of all, forgive me for bad English.

When I starts new thread (pthread_create), system allocates some memory for it (for example, for thread's stack). I wonder when does it deallocate...
Forum: Programming 10-13-2005
4,389
Posted By prankster
Doesn't work too. In modern versions all the...
Doesn't work too. In modern versions all the lpthread and lthread functions are included into libc, and lpthread and lthread are only the filters for libc. So it isn't necessary to compile programs...
Forum: Programming 10-08-2005
4,389
Posted By prankster
Here's my program (lite version :) ): ...
Here's my program (lite version :) ):

#include <stdio.h>
#include <pthread.h>

#define STR "Windows must die\n"
#define TIMEOUT 2

void* start(void* p) {
int i = 0;

...
Forum: Programming 10-07-2005
4,389
Posted By prankster
Question: pthread_cancel() and printf()
Hello!
First of all, sorry for my English, I'm not a native English speaker.

I know, that printf() function uses write() function. "man cancellation" says that write() function is a cancellation...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 06:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy