Skip to content
Snippets Groups Projects
Commit f1d3e924 authored by rswindell's avatar rswindell
Browse files

Using listShiftNode() macro.

parent 622d7827
Branches
Tags
No related merge requests found
...@@ -275,7 +275,7 @@ void ciolib_mouse_thread(void *data) ...@@ -275,7 +275,7 @@ void ciolib_mouse_thread(void *data)
struct in_mouse_event *in; struct in_mouse_event *in;
pthread_mutex_lock(&in_mutex); pthread_mutex_lock(&in_mutex);
in=listRemoveNode(&state.input, FIRST_NODE); in=listShiftNode(&state.input);
pthread_mutex_unlock(&in_mutex); pthread_mutex_unlock(&in_mutex);
if(in==NULL) if(in==NULL)
continue; continue;
...@@ -450,7 +450,7 @@ int ciolib_getmouse(struct mouse_event *mevent) ...@@ -450,7 +450,7 @@ int ciolib_getmouse(struct mouse_event *mevent)
if(listCountNodes(&state.output)) { if(listCountNodes(&state.output)) {
struct out_mouse_event *out; struct out_mouse_event *out;
pthread_mutex_lock(&out_mutex); pthread_mutex_lock(&out_mutex);
out=listRemoveNode(&state.output,FIRST_NODE); out=listShiftNode(&state.output);
pthread_mutex_unlock(&out_mutex); pthread_mutex_unlock(&out_mutex);
if(out==NULL) if(out==NULL)
return(-1); return(-1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment