Hi,

Are there any issues that i should now about memcpy and multithreading in FreeBSD?
I've got a code which reads:

        memcpy(&(h.req), req, sizeof(struct request));

and I keep getting SIGSEGV there in FreeBSD but not in Linux. 

PS: Of course, I protect the write operation with a mutex.
PS2: 
typedef struct hist_data {
        struct request req;
        int nthreads;
        int bwritten;
        struct thread_data wthread[MAXTHREADS];
} hist_data;


- Murat Balaban

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to