Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jan 2003 09:27:14 +0200
From:      Murat Balaban <murat@enderunix.org>
To:        freebsd-hackers@freebsd.org
Subject:   memcpy and multithreading
Message-ID:  <20030129092714.A86300@enderunix.org>

next in thread | raw e-mail | index | archive | help

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 majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030129092714.A86300>