mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
Fixes suggested by thomasvs to get rhythmbox working with basic threads
Original commit message from CVS: Fixes suggested by thomasvs to get rhythmbox working with basic threads - int res; + int res = 0; - res = munmap ((void *) thread, COTHREAD_STACKSIZE); +/* res = munmap ((void *) thread, COTHREAD_STACKSIZE); */
This commit is contained in:
parent
8433fe5775
commit
7cc370b0bf
1 changed files with 2 additions and 2 deletions
|
@ -267,7 +267,7 @@ cothread_destroy (cothread_state *thread)
|
||||||
else {
|
else {
|
||||||
/* this doesn't seem to work very well */
|
/* this doesn't seem to work very well */
|
||||||
/* munmap ((void *) thread, COTHREAD_STACKSIZE); */
|
/* munmap ((void *) thread, COTHREAD_STACKSIZE); */
|
||||||
int res;
|
int res = 0;
|
||||||
|
|
||||||
GST_DEBUG (GST_CAT_COTHREADS,
|
GST_DEBUG (GST_CAT_COTHREADS,
|
||||||
"unmap cothread slot stack from %p to %p (size %ld)",
|
"unmap cothread slot stack from %p to %p (size %ld)",
|
||||||
|
@ -275,7 +275,7 @@ cothread_destroy (cothread_state *thread)
|
||||||
(long) COTHREAD_STACKSIZE);
|
(long) COTHREAD_STACKSIZE);
|
||||||
GST_DEBUG (GST_CAT_COTHREADS, "doing an munmap at %p of size %d\n",
|
GST_DEBUG (GST_CAT_COTHREADS, "doing an munmap at %p of size %d\n",
|
||||||
thread, COTHREAD_STACKSIZE);
|
thread, COTHREAD_STACKSIZE);
|
||||||
res = munmap ((void *) thread, COTHREAD_STACKSIZE);
|
/* res = munmap ((void *) thread, COTHREAD_STACKSIZE); */
|
||||||
if (res != 0)
|
if (res != 0)
|
||||||
{
|
{
|
||||||
switch (res)
|
switch (res)
|
||||||
|
|
Loading…
Reference in a new issue