Skip to content
Snippets Groups Projects
Commit a049194b authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Use local instead of a trip to memory.

parent 1e5061c9
No related branches found
No related tags found
No related merge requests found
......@@ -66,10 +66,11 @@ void xt_request_wait(Xt_request *request) {
void xt_request_test(Xt_request *request, int *flag) {
assert(request);
if (*request != XT_REQUEST_NULL) {
*flag = (*request)->vtable->test(*request);
if (*flag) *request = XT_REQUEST_NULL;
} else {
*flag = 1;
int flag_ = 1;
Xt_request req = *request;
if (req != XT_REQUEST_NULL) {
flag_ = req->vtable->test(req);
if (flag_) *request = XT_REQUEST_NULL;
}
*flag = flag_;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment