Skip to content

Commit

Permalink
fixing pthread error an x permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek Molloy committed Dec 23, 2014
1 parent 33d148e commit 31a3152
Show file tree
Hide file tree
Showing 38 changed files with 2 additions and 1 deletion.
Empty file modified chp02/internetOverUSB
100644 → 100755
Empty file.
Empty file modified chp03/HelloWorldSleep
100644 → 100755
Empty file.
Empty file modified chp05/bashLED/bashLED
100644 → 100755
Empty file.
Empty file modified chp05/javaLED/build
100644 → 100755
Empty file.
Empty file modified chp05/javaLED/run
100644 → 100755
Empty file.
Empty file modified chp05/makeLED/build
100644 → 100755
Empty file.
Empty file modified chp05/makeLED/makeLED
100644 → 100755
Empty file.
Empty file modified chp05/makeLED/makeLEDC
100644 → 100755
Empty file.
Empty file modified chp05/makeLEDOOP/build
100644 → 100755
Empty file.
Empty file modified chp05/overview/cppstrings
100644 → 100755
Empty file.
Empty file modified chp05/overview/cstrings
100644 → 100755
Empty file.
Empty file modified chp05/overview/helloworldc
100644 → 100755
Empty file.
Empty file modified chp05/overview/helloworldcpp
100644 → 100755
Empty file.
Empty file modified chp05/overview/operators
100644 → 100755
Empty file.
Empty file modified chp05/overview/passing
100644 → 100755
Empty file.
Empty file modified chp05/overview/pointerarray
100644 → 100755
Empty file.
Empty file modified chp05/overview/pointers
100644 → 100755
Empty file.
Empty file modified chp05/overview/short1
100644 → 100755
Empty file.
Empty file modified chp05/overview/short2
100644 → 100755
Empty file.
Empty file modified chp05/overview/shortc
100644 → 100755
Empty file.
Empty file modified chp05/overview/shortcpp
100644 → 100755
Empty file.
Empty file modified chp05/overview/sizeofvariables
100644 → 100755
Empty file.
Empty file modified chp05/overview/void
100644 → 100755
Empty file.
Empty file modified chp05/performance/binaryARMhf/n-body
100644 → 100755
Empty file.
Empty file modified chp05/performance/binaryARMhf/n-body2
100644 → 100755
Empty file.
Empty file modified chp05/performance/build
100644 → 100755
Empty file.
Empty file modified chp05/performance/build-cross
100644 → 100755
Empty file.
Empty file modified chp05/performance/run
100644 → 100755
Empty file.
Empty file modified chp05/perlLED/perlLED
100644 → 100755
Empty file.
Empty file modified chp05/proc/build
100644 → 100755
Empty file.
Empty file modified chp05/proc/readUptime
100644 → 100755
Empty file.
Empty file modified chp05/proc/who
100644 → 100755
Empty file.
Empty file modified chp05/syscall/build
100644 → 100755
Empty file.
Empty file modified chp05/syscall/syscall
100644 → 100755
Empty file.
Empty file modified chp06/callback/callback
100644 → 100755
Empty file.
Empty file modified chp06/pthreads/build
100644 → 100755
Empty file.
Empty file modified chp06/pthreads/pthreads
100644 → 100755
Empty file.
3 changes: 2 additions & 1 deletion chp06/pthreads/pthreads.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ int main() {
int x=0, y=0;
pthread_t thread; //this is our handle to the pthread
// create the thread, pass the reference, address of the function and data
if(pthread_create(&thread, NULL, &threadFunction, &x)){
// pthread_create() returns 0 on the successful creation of a thread
if(pthread_create(&thread, NULL, &threadFunction, &x)!=0){
cout << "Failed to create the thread" << endl;
return 1;
}
Expand Down

0 comments on commit 31a3152

Please sign in to comment.