From 46559d7101fc7b9bb7d96cead9c02f1b2866e8ec Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Mon, 23 Jun 2003 09:49:16 +0000 Subject: Change the definition of _ksd_curkse, _ksd_curthread and _ksd_readandclear_tmbx to be function-like. That way we can define them as inline functions or create prototypes for them. This change allows the ksd interface on ia64 to be fully inlined. --- lib/libpthread/thread/thr_kern.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libpthread/thread/thr_kern.c') diff --git a/lib/libpthread/thread/thr_kern.c b/lib/libpthread/thread/thr_kern.c index 71957cfec78a..2641890a747a 100644 --- a/lib/libpthread/thread/thr_kern.c +++ b/lib/libpthread/thread/thr_kern.c @@ -478,7 +478,7 @@ _kse_critical_enter(void) { kse_critical_t crit; - crit = _ksd_readandclear_tmbx; + crit = _ksd_readandclear_tmbx(); return (crit); } @@ -1815,14 +1815,14 @@ kse_wakeup_multi(struct kse *curkse) struct pthread * _get_curthread(void) { - return (_ksd_curthread); + return (_ksd_curthread()); } /* This assumes the caller has disabled upcalls. */ struct kse * _get_curkse(void) { - return (_ksd_curkse); + return (_ksd_curkse()); } void -- cgit v1.2.3