Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
f8058b5f
Commit
f8058b5f
authored
Oct 31, 2013
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pwr_db_lock-file was created by xtt if Proview wasn't started
parent
ca4ab86c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
10 deletions
+24
-10
src/lib/rt/src/rt_gdb.c
src/lib/rt/src/rt_gdb.c
+3
-2
src/lib/rt/src/rt_nmps_lock.c
src/lib/rt/src/rt_nmps_lock.c
+1
-1
src/lib/rt/src/rt_pool.c
src/lib/rt/src/rt_pool.c
+4
-3
src/lib/rt/src/rt_qdb.c
src/lib/rt/src/rt_qdb.c
+3
-2
src/lib/rt/src/rt_sect.c
src/lib/rt/src/rt_sect.c
+7
-1
src/lib/rt/src/rt_sect.h
src/lib/rt/src/rt_sect.h
+6
-1
No files found.
src/lib/rt/src/rt_gdb.c
View file @
f8058b5f
...
...
@@ -653,7 +653,8 @@ gdb_CreateDb (
/* Create lock section. */
gdbroot
->
lock
=
sect_Alloc
(
sts
,
&
created
,
&
gdbroot
->
h
.
lock
,
sizeof
(
sect_sMutex
),
gdb_cNameDbLock
);
gdbroot
->
lock
=
sect_Alloc
(
sts
,
&
created
,
&
gdbroot
->
h
.
lock
,
sizeof
(
sect_sMutex
),
gdb_cNameDbLock
,
sect_mFlags_Create
);
if
(
gdbroot
->
lock
==
NULL
)
errh_Bugcheck
(
*
sts
,
"creating database lock"
);
if
(
!
created
)
errh_Bugcheck
(
GDH__WEIRD
,
"database lock was allready created"
);
...
...
@@ -1123,7 +1124,7 @@ gdb_MapDb (
/* Map lock sections. */
gdbroot
->
lock
=
sect_Alloc
(
sts
,
&
created
,
&
gdbroot
->
h
.
lock
,
sizeof
(
sect_sMutex
),
gdb_cNameDbLock
);
gdbroot
->
lock
=
sect_Alloc
(
sts
,
&
created
,
&
gdbroot
->
h
.
lock
,
sizeof
(
sect_sMutex
),
gdb_cNameDbLock
,
0
);
if
(
gdbroot
->
lock
==
NULL
)
errh_Bugcheck
(
*
sts
,
"mapping db lock"
);
if
(
created
)
{
sect_Free
(
&
lsts
,
gdbroot
->
lock
);
...
...
src/lib/rt/src/rt_nmps_lock.c
View file @
f8058b5f
...
...
@@ -51,7 +51,7 @@ void nmps_create_lock( pwr_tStatus *sts)
if
(
!
nmps_locksect
)
{
nmps_locksect
=
sect_Alloc
(
sts
,
&
created
,
0
,
sizeof
(
sect_sMutex
),
nmps_cName_Lock
);
nmps_cName_Lock
,
sect_mFlags_Create
);
if
(
ODD
(
*
sts
)
&&
created
)
sect_InitLock
(
sts
,
nmps_locksect
,
(
sect_sMutex
*
)
nmps_locksect
->
base
);
}
...
...
src/lib/rt/src/rt_pool.c
View file @
f8058b5f
...
...
@@ -345,7 +345,8 @@ mapSegment (
segName
(
name
,
gphp
->
name
,
psp
->
gpsp
->
generation
);
shp
=
sect_Alloc
(
&
lsts
,
&
created
,
&
psp
->
sect
,
psp
->
gpsp
->
size
<<
pool_cOffsGranul
,
name
);
shp
=
sect_Alloc
(
&
lsts
,
&
created
,
&
psp
->
sect
,
psp
->
gpsp
->
size
<<
pool_cOffsGranul
,
name
,
sect_mFlags_Create
);
if
(
shp
==
NULL
)
errh_ReturnOrBugcheck
(
NULL
,
sts
,
lsts
,
""
);
if
(
created
)
errh_Bugcheck
(
POOL__NOTCREATED
,
"pool was not created"
);
...
...
@@ -397,7 +398,7 @@ newSegment (
segName
(
name
,
gphp
->
name
,
gphp
->
generation
);
shp
=
sect_Alloc
(
sts
,
&
created
,
&
psp
->
sect
,
size
<<
pool_cOffsAlign
,
name
);
shp
=
sect_Alloc
(
sts
,
&
created
,
&
psp
->
sect
,
size
<<
pool_cOffsAlign
,
name
,
sect_mFlags_Create
);
if
(
shp
==
NULL
)
return
NULL
;
if
(
!
created
)
errh_Bugcheck
(
POOL__ALLREXIST
,
""
);
...
...
@@ -769,7 +770,7 @@ pool_Create (
pwr_Return
(
NULL
,
sts
,
POOL__ALLRMAPPED
);
do
{
shp
=
sect_Alloc
(
&
lsts
,
&
created
,
&
php
->
sect
,
sizeof
(
*
gphp
),
name
);
shp
=
sect_Alloc
(
&
lsts
,
&
created
,
&
php
->
sect
,
sizeof
(
*
gphp
),
name
,
sect_mFlags_Create
);
if
(
shp
==
NULL
)
break
;
gphp
=
(
pool_sGhead
*
)
shp
->
base
;
...
...
src/lib/rt/src/rt_qdb.c
View file @
f8058b5f
...
...
@@ -678,7 +678,8 @@ qdb_CreateDb (
/* Create lock section. */
sp
=
sect_Alloc
(
sts
,
&
created
,
&
qdb
->
lock
,
sizeof
(
sect_sMutex
),
qdb_cNameDbLock
);
sp
=
sect_Alloc
(
sts
,
&
created
,
&
qdb
->
lock
,
sizeof
(
sect_sMutex
),
qdb_cNameDbLock
,
sect_mFlags_Create
);
if
(
sp
==
NULL
)
errh_Bugcheck
(
*
sts
,
"creating db lock"
);
if
(
!
created
)
errh_Bugcheck
(
QCOM__WEIRD
,
"db lock was allready created"
);
...
...
@@ -916,7 +917,7 @@ qdb_MapDb (
/* Map lock sections. */
sp
=
sect_Alloc
(
sts
,
&
created
,
&
qdb
->
lock
,
sizeof
(
sect_sMutex
),
qdb_cNameDbLock
);
sp
=
sect_Alloc
(
sts
,
&
created
,
&
qdb
->
lock
,
sizeof
(
sect_sMutex
),
qdb_cNameDbLock
,
0
);
if
(
sp
==
NULL
)
errh_Bugcheck
(
*
sts
,
"mapping db lock"
);
if
(
created
)
errh_Bugcheck
(
QCOM__WEIRD
,
"db lock was not created"
);
*
sts
=
sync_MutexInit
(
&
qdb
->
thread_lock
.
mutex
);
...
...
src/lib/rt/src/rt_sect.c
View file @
f8058b5f
...
...
@@ -127,7 +127,8 @@ sect_Alloc (
pwr_tBoolean
*
created
,
sect_sHead
*
shp
,
size_t
size
,
char
*
name
char
*
name
,
unsigned
int
flags
)
{
pwr_tStatus
lsts
=
1
;
...
...
@@ -290,6 +291,11 @@ sect_Alloc (
*
created
=
1
;
}
else
if
(
shm_fd
==
-
1
)
{
if
(
errno
==
ENOENT
)
{
/* It didn't exist */
if
(
!
(
flags
&
sect_mFlags_Create
))
{
lsts
=
2
;
errh_Error
(
"sect_Alloc: Couldn't attach shm section size"
);
break
;
}
shMemFlags
|=
O_CREAT
|
O_EXCL
;
shm_fd
=
open
(
shp
->
name
,
shMemFlags
,
shMemMode
);
if
(
shm_fd
==
-
1
)
{
...
...
src/lib/rt/src/rt_sect.h
View file @
f8058b5f
...
...
@@ -45,6 +45,10 @@
#include "pwr.h"
typedef
enum
{
sect_mFlags_Create
=
1
<<
0
}
sect_mFlags
;
#if defined OS_LYNX
# include <semaphore.h>
...
...
@@ -123,7 +127,8 @@ sect_Alloc (
pwr_tBoolean
*
created
,
sect_sHead
*
shp
,
size_t
size
,
char
*
name
char
*
name
,
unsigned
int
flags
);
pwr_tBoolean
...
...
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