nanogui: pixmap buffer patch!
Subject:
Re: [nanogui] Re: pixmap buffer patch!
From:
Jordan Crouse ####@####.####
Date:
27 Aug 2002 18:03:21 -0000
Message-Id: <1030471058.23244.451.camel@cosmic>
> Actually, we may not need to spinlock. We could use the
> pthread_mutex stuff that's actually in glibc now. (That's how
> I implemented the multi-thread locking...)
Two problems with that:
First - your millage may vary with the pthreads in glibc - it works OK
on x86, but not as well on other platforms (MIPS comes to mind). Plus,
on my system the libpthreads.so is 600k - not exactly thin.
Secondly - uclibc doesn't support threading or mutexes right now. This
is a point that we need to seriously consider, because uclibc +
microwindows is a natural fit, and it puts us well ahead of any other
GUI systems in terms of size.
Now, on the other hand, writing a mutex is time consuming, and difficult
- and it violates the basic open source premise of "don't reinvent the
wheel".
It is my opinion that having the pthreads dependency is something that
may come back and haunt us. Thats why I would recommend biting the
bullet and doing it ourselves.
Jordan