Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RF24
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
RF24
Commits
d89ff7e1
Commit
d89ff7e1
authored
Nov 10, 2016
by
TMRh20
Committed by
GitHub
Nov 10, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #273 from marceloaqno/fix-mutex-init
add static initialization for pthread mutexes
parents
aaa09e18
e204656c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
utility/RPi/interrupt.c
utility/RPi/interrupt.c
+1
-1
utility/RPi/spi.cpp
utility/RPi/spi.cpp
+1
-1
No files found.
utility/RPi/interrupt.c
View file @
d89ff7e1
...
...
@@ -23,7 +23,7 @@ see <http://www.gnu.org/licenses/>
#define delay(x) bcm2835_delay(x)
static
pthread_mutex_t
pinMutex
;
static
pthread_mutex_t
pinMutex
=
PTHREAD_MUTEX_INITIALIZER
;
static
volatile
int
pinPass
=
-
1
;
pthread_t
threadId
[
64
];
...
...
utility/RPi/spi.cpp
View file @
d89ff7e1
#include "spi.h"
#include <pthread.h>
static
pthread_mutex_t
spiMutex
;
static
pthread_mutex_t
spiMutex
=
PTHREAD_MUTEX_INITIALIZER
;
SPI
::
SPI
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment