PERFORCE change 222985 for review
Robert Watson
rwatson at FreeBSD.org
Sun Mar 17 23:02:48 UTC 2013
http://p4web.freebsd.org/@@222985?ac=10
Change 222985 by rwatson at rwatson_cinnamon on 2013/03/17 23:02:24
In per-thread ctor/dtor, use td rather than curthread as the place
to stick/unstick tesla-state.
Affected files ...
.. //depot/projects/ctsrd/tesla/src/sys/libtesla/state-perthread.c#4 edit
Differences ...
==== //depot/projects/ctsrd/tesla/src/sys/libtesla/state-perthread.c#4 (text+ko) ====
@@ -64,7 +64,7 @@
error = tesla_store_init(store, TESLA_SCOPE_PERTHREAD,
TESLA_MAX_CLASSES, TESLA_MAX_INSTANCES);
tesla_assert(error == TESLA_SUCCESS, ("tesla_store_init failed"));
- curthread->td_tesla = store;
+ td->td_tesla = store;
}
static void
@@ -72,8 +72,8 @@
{
struct tesla_store *store;
- store = curthread->td_tesla;
- curthread->td_tesla = NULL;
+ store = td->td_tesla;
+ td->td_tesla = NULL;
tesla_store_free(store);
tesla_free(store);
}
More information about the p4-projects
mailing list