1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

2310 Commits

Author SHA1 Message Date
Raphael Hiesgen
310ac02ad7 Adds test for pthread.
The test uses pthread to calculate the factorial of 12, with one
thread for each multiplication. pthread_mutex is used for synchronization.
2014-02-26 13:52:08 +01:00
Ludwig Ortmann
bc66ba8439 Merge pull request #762 from LudwigOrtmann/issue_741
make calloc "usable" early on
2014-02-24 09:12:43 +01:00
Christian Mehlis
2de9619f21 Merge pull request #758 from Kijewski/issue-755
Fix `pthread_self()` confusion
2014-02-22 18:30:11 +01:00
Christian Mehlis
668c29ca52 Merge pull request #763 from LudwigOrtmann/issue_717
move global char array out of thread
2014-02-22 18:18:53 +01:00
Ludwig Ortmann
af7a15b3f0 move global char array out of thread
The char msg[] is accessed from outside the main thread after it has
exited, so it needs to outlive it.

Fixes #717
2014-02-22 13:28:21 +01:00
Ludwig Ortmann
86812c2abb make calloc "usable" early on
closes #741

Old versions of the gnu libc uses calloc to allocate dymanic memory
when some error occurs in dlsym.
This results in a segfault as natives calloc wrapper has not been
initialized yet.
As this is a circular dependency and the libc can cope with this, we
just return NULL from the calloc wrapper and hope for the best.

Recent libc versions use a static buffer instead.
2014-02-22 13:08:45 +01:00
René Kijewski
2317ab07a1 Merge pull request #761 from mehlis/test-pthread-license
test: added missing license
2014-02-22 11:50:11 +01:00
Christian Mehlis
1e11aca209 test: added missing license 2014-02-21 21:51:29 +01:00
Christian Mehlis
b2dbf3dcae Merge pull request #754 from Kijewski/pthread_reaper_stack-linkage
`pthread_reaper_stack` has global linkage for no proper reason.
2014-02-21 20:32:22 +01:00
René Kijewski
ca4337ab4d Fix pthread_self() confusion
This fixes #755.

The pthread ID cannot be reused as soon as the thread ends, because
another thread needs to join it first. `pthread_self()` uses the native
(i.e. RIOT's) thread ID to distinguish itself. A native thread ID can be
reused as soon as the thread ends, since the core knows no join
operation.

In order to not confuse itself with an earlier zombie thread (i.e a dead
non-detached thread, that was not joined, yet), we need to invalidate
the associated native thread ID.

This approach is sane since a dead thread won't call `pthread_self()`
anymore.
2014-02-21 17:44:08 +01:00
René Kijewski
cb423c0ac4 Fix linkage of pthread_reaper_stack 2014-02-21 14:03:55 +01:00
Christian Mehlis
3e980184a8 Merge pull request #748 from authmillenon/fix-possible-null-pointer-errors
bughunt: Fix possible null pointer dereference
2014-02-20 21:41:50 +01:00
Christian Mehlis
c2190a277f Merge pull request #750 from Kijewski/fix-sys-random
Fix the makefile of sys/random
2014-02-20 21:37:15 +01:00
René Kijewski
e55fd19d5c Fix the makefile of sys/random
The Makefile must not overwrite the include paths.
2014-02-20 17:16:57 +01:00
Christian Mehlis
48f23aa43d Merge pull request #734 from mehlis/native-c++-fixes
C++ compiler warnings (native, core)
2014-02-20 10:27:37 +01:00
Martin Lenders
4119e15e6b Fix possible null pointer dereference 2014-02-20 02:29:33 +01:00
Christian Mehlis
c5230a4a0a Merge pull request #694 from mehlis/pthread-module
Pthread module
2014-02-19 23:42:07 +01:00
Christian Mehlis
e865022a31 pthread: initial add 2014-02-19 23:39:38 +01:00
Christian Mehlis
361c259948 Merge pull request #517 from mehlis/ccn-lite-follow-up-8
ccnl: enable nonce in interests
2014-02-19 23:31:44 +01:00
Christian Mehlis
a21c8d41e1 ccnl: fix 'no break' warning in switch 2014-02-19 23:23:54 +01:00
Christian Mehlis
87d8e4f99c enable nonces in interests 2014-02-19 23:23:53 +01:00
Christian Mehlis
9fa0844f3f added nonce timeout 2014-02-19 23:23:53 +01:00
Christian Mehlis
e895088e9e Merge pull request #733 from authmillenon/fix-shell
sys: Hotfix for error introduced in #678
2014-02-18 22:57:24 +01:00
Martin Lenders
df83221983 Hotfix for error introduced in #678 2014-02-18 22:44:00 +01:00
Christian Mehlis
0309fecc19 fix warning: invalid suffix on literal
C++11 requires a space between
literal and identifier [-Wliteral-suffix]
2014-02-18 17:05:01 +01:00
Christian Mehlis
09bdb56d52 native: fix function prototype to match to api 2014-02-18 16:28:13 +01:00
Oleg Hahm
d1cf9deb38 Merge pull request #731 from authmillenon/wireshark-padding
Wireshark dissector: Account for padding in small packages
2014-02-18 15:17:40 +01:00
Oleg Hahm
7235f9e92c Merge pull request #729 from BytesGalore/remove_unnecessary_includes
core:mutex removed unnecessary includes
2014-02-18 13:52:21 +01:00
Oleg Hahm
c1bcfb3516 Merge pull request #722 from Kijewski/fixup-664
First apply board includes, then det. CC caps
2014-02-18 13:45:50 +01:00
Martin Lenders
1258675171 Account for padding in small packages in wireshark 2014-02-18 13:39:44 +01:00
Oleg Hahm
b42496475a Merge pull request #724 from rousselk/reboot
Reboot
2014-02-18 13:33:49 +01:00
Martin
ff36df6847 migrated tcb.h include to .c file 2014-02-18 12:50:30 +01:00
Christian Mehlis
6578669e46 Merge pull request #718 from Kijewski/issue-693
"Exterminate `} else {`"
2014-02-18 12:42:54 +01:00
Christian Mehlis
c8132b2988 Merge pull request #677 from mehlis/project-application
replace project by application in documentation
2014-02-18 12:30:21 +01:00
Christian Mehlis
cb9c5d00de repace project by application in documentation 2014-02-18 12:28:32 +01:00
Christian Mehlis
68bc93b0c7 Merge pull request #720 from mehlis/fix-leak-on-error
ccnl: fix memory leak on CS error
2014-02-18 12:23:18 +01:00
Christian Mehlis
980bd2e7a4 ccnl: fix memory leak on CS error 2014-02-18 12:17:53 +01:00
Martin
88c7c47c46 removed unnecessary includes 2014-02-18 10:54:34 +01:00
Kévin Roussel
dc6f920f33 Merge remote-tracking branch 'origin/reboot' into reboot 2014-02-17 12:00:19 +01:00
Kévin Roussel
e3a426c81d Merge pull request #3 from OlegHahm/lpc1768_reset
Lpc1768 reset
2014-02-17 11:12:22 +01:00
René Kijewski
d7834ecbf8 First apply board includes, then det. CC caps
In #664 I added a test that determines if the supplied compiler
understands the `-fno-delete-null-pointer-checks` flag. The problem is
that the `$(CC)` supplied on command line or in the application's
Makefile is used, but not the one the `$(BOARD)`'s Makefile sets.

That problem was overlooked as all the boards use GCC, and GCC happens
to know the flag. But if some future board does not use GCC, then the
wrong order of the checks could pose a problem.
2014-02-17 07:04:36 +01:00
René Kijewski
2349d0806e "Exterminate } else {" 2014-02-16 23:29:47 +01:00
René Kijewski
6dea183eac Merge pull request #721 from mehlis/fix-avaiable
ccnl: fix two typos
2014-02-16 23:14:44 +01:00
Christian Mehlis
fcabb3be2a ccnl: fix two typos 2014-02-16 23:12:51 +01:00
Christian Mehlis
70773d1413 Merge pull request #719 from mehlis/fix-timeout
ccnl: fix ageing timeout
2014-02-16 23:07:40 +01:00
Christian Mehlis
8897c67677 ccnl: fix ageing timeout 2014-02-16 22:45:32 +01:00
Oleg Hahm
6c0482b976 Merge pull request #701 from Kijewski/issue-672
Use `filter` instead of `findstring`
2014-02-16 12:33:29 +01:00
Christian Mehlis
3dce0cbb97 Merge pull request #662 from Kijewski/remove-sched_init
Do not zero out sched_threads needlessly
2014-02-16 11:37:05 +01:00
Christian Mehlis
7092ac629c Merge pull request #569 from kaspar030/dont_wake_up_reply_blocked_sender_after_receive
core: msg: don't wake up sender after receive if it's REPLY_BLOCKED
2014-02-16 11:02:10 +01:00
Christian Mehlis
4a3d8cddaa Merge pull request #665 from authmillenon/wireshark-dissector
Add wireshark dissector for native packets
2014-02-16 10:49:55 +01:00