Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-vr-interactive
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-vr-interactive
Commits
ec94e1d5
Commit
ec94e1d5
authored
May 29, 2020
by
Martin Pulec
Browse files
Options
Downloads
Patches
Plain Diff
UltraGrid plugin: updated platform_ipc
parent
b2c9cf06
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
client/ultragrid/platform_ipc.c
+5
-5
5 additions, 5 deletions
client/ultragrid/platform_ipc.c
with
5 additions
and
5 deletions
client/ultragrid/platform_ipc.c
+
5
−
5
View file @
ec94e1d5
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
#define MOD_NAME "[platform IPC] "
#define MOD_NAME "[platform IPC] "
#ifdef _
_gnu_linux__
#if
n
def _
WIN32
static
key_t
get_key
(
const
char
*
id
,
int
proj_id
)
{
static
key_t
get_key
(
const
char
*
id
,
int
proj_id
)
{
char
key_path
[
1024
];
char
key_path
[
1024
];
snprintf
(
key_path
,
sizeof
key_path
,
"/tmp/%s-%"
PRIdMAX
,
id
,
(
intmax_t
)
getuid
());
snprintf
(
key_path
,
sizeof
key_path
,
"/tmp/%s-%"
PRIdMAX
,
id
,
(
intmax_t
)
getuid
());
...
@@ -109,7 +109,7 @@ void PrintError(void)
...
@@ -109,7 +109,7 @@ void PrintError(void)
//
//
// SHM
// SHM
//
//
#ifdef _
_gnu_linux__
#if
n
def _
WIN32
static
platform_ipc_shm_t
platform_ipc_shm_open_common
(
const
char
*
id
,
size_t
size
,
int
shmflg
)
static
platform_ipc_shm_t
platform_ipc_shm_open_common
(
const
char
*
id
,
size_t
size
,
int
shmflg
)
{
{
key_t
key
=
get_key
(
id
,
1
);
key_t
key
=
get_key
(
id
,
1
);
...
@@ -132,7 +132,7 @@ static platform_ipc_shm_t platform_ipc_shm_open_common(const char *id, size_t si
...
@@ -132,7 +132,7 @@ static platform_ipc_shm_t platform_ipc_shm_open_common(const char *id, size_t si
return
handle
;
return
handle
;
}
}
#endif // defined _
_gnu_linux__
#endif //
!
defined _
WIN32
platform_ipc_shm_t
platform_ipc_shm_create
(
const
char
*
id
,
size_t
size
)
platform_ipc_shm_t
platform_ipc_shm_create
(
const
char
*
id
,
size_t
size
)
{
{
...
@@ -233,7 +233,7 @@ void platform_ipc_shm_done(platform_ipc_shm_t handle, bool destroy)
...
@@ -233,7 +233,7 @@ void platform_ipc_shm_done(platform_ipc_shm_t handle, bool destroy)
//
//
// Semaphores
// Semaphores
//
//
#ifdef _
_gnu_linux__
#if
n
def _
WIN32
static
platform_ipc_sem_t
platform_ipc_sem_open_common
(
const
char
*
id
,
int
index
,
int
semflg
)
static
platform_ipc_sem_t
platform_ipc_sem_open_common
(
const
char
*
id
,
int
index
,
int
semflg
)
{
{
key_t
key
=
get_key
(
id
,
index
);
key_t
key
=
get_key
(
id
,
index
);
...
@@ -254,7 +254,7 @@ static platform_ipc_sem_t platform_ipc_sem_open_common(const char *id, int index
...
@@ -254,7 +254,7 @@ static platform_ipc_sem_t platform_ipc_sem_open_common(const char *id, int index
}
}
return
handle
;
return
handle
;
}
}
#endif // defined _
_gnu_linux__
#endif //
!
defined _
WIN32
platform_ipc_sem_t
platform_ipc_sem_create
(
const
char
*
id
,
int
index
)
platform_ipc_sem_t
platform_ipc_sem_create
(
const
char
*
id
,
int
index
)
{
{
...
...
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