Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
4a7a565e
Commit
4a7a565e
authored
17 years ago
by
patacongo
Browse files
Options
Downloads
Patches
Plain Diff
Typo
git-svn-id:
svn://svn.code.sf.net/p/nuttx/code/trunk@587
42af7a65-404d-4744-a932-0658087f49c3
parent
c55f4a37
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/ostest/sem.c
+3
-3
3 additions, 3 deletions
examples/ostest/sem.c
with
3 additions
and
3 deletions
examples/ostest/sem.c
+
3
−
3
View file @
4a7a565e
/***********************************************************************
* sem.c
*
* Copyright (C) 2007 Gregory Nutt. All rights reserved.
* Copyright (C) 2007
, 2008
Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
...
...
@@ -14,7 +14,7 @@
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
* 3. Neither the name
Gregory
Nutt nor the names of its contributors may be
* 3. Neither the name Nutt
X
nor the names of its contributors may be
* used to endorse or promote products derived from this software
* without specific prior written permission.
*
...
...
@@ -66,7 +66,7 @@ static void *waiter_func(void *parameter)
printf
(
"waiter_func: Thread %d initial semaphore value = %d
\n
"
,
id
,
value
);
}
printf
(
"waiter_func: Thread %d aiting on semaphore
\n
"
,
id
);
printf
(
"waiter_func: Thread %d
w
aiting on semaphore
\n
"
,
id
);
status
=
sem_wait
(
&
sem
);
if
(
status
!=
0
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment