memcpy and multithreading

2003-01-28 Thread Murat Balaban
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

Re: memcpy and multithreading

2003-01-28 Thread Dan Nelson
In the last episode (Jan 29), Murat Balaban said: 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)); What are the values of h and req at the time of segfault? You might want