summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/wcswidth.c
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2011-12-23 03:59:49 +0000
committeradrian <adrian@FreeBSD.org>2011-12-23 03:59:49 +0000
commit9ae4b343e49d1ef93317f69a25b2a8be1c67a0a1 (patch)
treef8682f3f2e6ce302668749a7d0bdae7a11d0a508 /lib/libc/string/wcswidth.c
parent06ccbf48e37cb56e3aef2397013847eeaa9699af (diff)
downloadFreeBSD-src-9ae4b343e49d1ef93317f69a25b2a8be1c67a0a1.zip
FreeBSD-src-9ae4b343e49d1ef93317f69a25b2a8be1c67a0a1.tar.gz
Rework this ugly mess that tries to handle reset serialisation.
Some users were reporting concurrent resets _were_ occuring - ie, either two ath_reset()s ran at the same time (likely one on each CPU) or ath_reset() versus ath_chan_change(). Instead, this now tries to grab the serialisation semaphore and will pause() for a while if it fails. It will always eventually succeed though and will log an error if it hits the recursion situation. All of this stuff needs to die a horrible death at some point and be replaced with a properly serialising method of programming this stuff (eg using the net80211 taskqueue for all of this stuff.) The trouble is figuring out how to handle the concurrent ioctl() based things without introducing more LORs (which is another reason why I haven't just wrapped all of this stuff in large, long-lived locks, a-la what Linux can get away with.) MFC after: Absolutely, positively never.
Diffstat (limited to 'lib/libc/string/wcswidth.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud