Thread: Re: [GENERAL] thread_test.c problems
wespvp@syntegra.com wrote: > On 4/5/04 8:31 AM, "Bruce Momjian" <pgman@candle.pha.pa.us> wrote: > > >>> OK, new patch applied that causes all threads to wait until the parent > >>> checks their thread-specific pointers. I ran 1000 tests and all passed. > >>> Hopefully it will good for you too. > >> > >> I'll try to give it a test tonight. > > > > Please grab CVS. I added sched_yield() too. > > Ok, I did a cvs update and reran the test. It now consistently returns > 'YES' to all three questions. Thanks. > > What needs to be done to get the standard Darwin template file updated to > enable threading? Oh, that is a problem because other linux's show 'no' for the last two. My plan is to have 'configure' run this program as part of its operation, and Jan has some thread configure scripts, and this will all be automated in 7.5 so no one will have to run the program manually. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073
Bruce Momjian <pgman@candle.pha.pa.us> writes: > My plan is to have 'configure' run this program as part of its > operation, Peter's not going to be happy with you ;-) Runtime configure tests are not part of the Grand Plan --- ideally configure should only have to do compile and link tests. regards, tom lane
Tom Lane wrote: > Bruce Momjian <pgman@candle.pha.pa.us> writes: > > My plan is to have 'configure' run this program as part of its > > operation, > > Peter's not going to be happy with you ;-) Runtime configure tests are > not part of the Grand Plan --- ideally configure should only have to do > compile and link tests. Yep, I am sure he isn't, but looking at platforms that have different thread-safety capabilities, I can't see a way around it. We could argue that the thread test is testing the thread library, not the actual computer it is running in. For example, it isn't do a 'df'. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073