Linux.com

weedlight

weedlight

  • Linux.com Member
  • Posts: 41
  • Member Since: 19 May 09
  • Last Logged In: 1 hour ago

Latest Posts

Posted by
Topic
Post Preview
Posted
  • weedlight
    RE: suspend other posix thread(s)
    The code looks like following: [code] void ags_thread_suspend_handler(int sig) { #ifdef AGS_DEBUG g_message("thread suspend\0"); #endif if(ags_thread_self == NULL) return; if ((AGS_THREAD_SUSPENDED & (g_atomic_int_get(&(ags_thread_self->flags)))) != 0) return; g_atomic_int_or(&(ags_thread_self->flags), AGS_THREAD_SUSPENDED); ags_thread_suspend(ags_thread_self); do sigsuspend(&(ags_thread_self->wait_mask)); while ((AGS_THREAD_SUSPENDED & (g_atomic_int_get(&(ags_thread_self->flags)))) != 0); } [/code] And is triggered like this: [code] pthread_kill(thread_id, AGS_THREAD_RESUME_SIG); [/code]
    Link to this post 1 hour ago

    The code looks like following:


    void
    ags_thread_suspend_handler(int sig)
    {
    #ifdef AGS_DEBUG
    g_message("thread suspend\0");
    #endif

    if(ags_thread_self == NULL)
    return;

    if ((AGS_THREAD_SUSPENDED & (g_atomic_int_get(&(ags_thread_self->flags)))) != 0) return;

    g_atomic_int_or(&(ags_thread_self->flags),
    AGS_THREAD_SUSPENDED);

    ags_thread_suspend(ags_thread_self);

    do sigsuspend(&(ags_thread_self->wait_mask)); while ((AGS_THREAD_SUSPENDED & (g_atomic_int_get(&(ags_thread_self->flags)))) != 0);
    }

    And is triggered like this:


    pthread_kill(thread_id, AGS_THREAD_RESUME_SIG);

  • weedlight
    RE: Anti-Time and the probability
    Sorry didn't watch star trek for a long time ... I have strange crashes and I'm realy asking me if compution time can exceed on linux: http://stackoverflow.com/questions/24640222/can-compution-time-exceed-on-linux
    Link to this post 2 days ago

    Sorry didn't watch star trek for a long time ...

    I have strange crashes and I'm realy asking me if compution time can exceed on linux:

    http://stackoverflow.com/questions/24640222/can-compution-time-exceed-on-linux

  • weedlight
    Anti-Time and the probability
    The hardware manufacturer builds the machine. Linus orcherstrates the world wide army of developers. Is someone breaking recommendations or voltage laws of our sphere? At what circumstances takes on the tunnel effect? The kernel is just a transparent layer to the machine. Whose fault is it in the case of damage? The GPL says software comes withouth any warranty, isn't it? I'd like to develop a multi threaded tree. How can I overtake the clock? 200 threads sounds like madness ... May be even more than one thread in hardware.
    Link to this post 04 Jul

    The hardware manufacturer builds the machine. Linus orcherstrates the world wide army of developers. Is someone breaking recommendations or voltage laws of our sphere?

    At what circumstances takes on the tunnel effect?

    The kernel is just a transparent layer to the machine. Whose fault is it in the case of damage? The GPL says software comes withouth any warranty, isn't it?

    I'd like to develop a multi threaded tree.
    How can I overtake the clock?

    200 threads sounds like madness ...
    May be even more than one thread in hardware.

  • weedlight
    unix programm name registration
    Could someone help I just forget where I have registrated a unix program name. I looked for me quiet official does berkley perhaps provide such a service.
    Link to this post 14 Sep 13

    Could someone help I just forget where I have registrated a unix program name.

    I looked for me quiet official does berkley perhaps provide such a service.

  • weedlight
    please implement pthread_suspend and pthread_resume
    Hi, a realtime kernel just makes no sense without pthread_suspend and pthread_resume. About async-thread-safe functions exist just when taking less than one turn in turn based system. Syncing takes 0 to 1 turn. Greedy threads takes more than 1 turn. By implementing Advanced Gtk+ Sequencer I have overtaken gtk's main loop and its greedy it takes more than one turn while doing user interaction. please consider what I told you thanks
    Link to this post 14 Sep 13

    Hi, a realtime kernel just makes no sense without pthread_suspend and pthread_resume.

    About async-thread-safe functions exist just when taking less than one turn in turn based system.

    Syncing takes 0 to 1 turn.

    Greedy threads takes more than 1 turn.

    By implementing Advanced Gtk+ Sequencer I have overtaken gtk's main loop and its greedy it takes more than one turn while doing user interaction.

    please consider what I told you

    thanks

  • weedlight
    RE: suspend other posix thread(s)
    Now I write a module that uses pth instead of pthread library.
    Link to this post 12 Sep 13

    Now I write a module that uses pth instead of pthread library.

  • weedlight
    suspend other posix thread(s)
    I just got this fancy application called `ags` see sourceforge.net/p/ags During compilation I get the following error: ags-ags_thread.o: In function `ags_thread_real_timelock': /home/joel/ags-code/./src/ags/thread/ags_thread.c:1620: undefined reference to `pthread_suspend' /home/joel/ags-code/./src/ags/thread/ags_thread.c:1660: undefined reference to `pthread_resume' because the listed functions don't exist on debian GNU/Linux. How can I install the pthread library that provides those functions ...
    Link to this post 11 Sep 13

    I just got this fancy application called `ags` see sourceforge.net/p/ags

    During compilation I get the following error:

    ags-ags_thread.o: In function `ags_thread_real_timelock':
    /home/joel/ags-code/./src/ags/thread/ags_thread.c:1620: undefined reference to `pthread_suspend'
    /home/joel/ags-code/./src/ags/thread/ags_thread.c:1660: undefined reference to `pthread_resume'

    because the listed functions don't exist on debian GNU/Linux. How can I install the pthread library that provides those functions ...

  • weedlight
    RE: Bluray on Linux.
    Note this may be not legal in your country! You can decrypt blu-ray using: http://www.videolan.org/developers/libaacs.html There's a good article: https://wiki.archlinux.org/index.php/BluRay
    Link to this post 25 Aug 13

    Note this may be not legal in your country!

    You can decrypt blu-ray using:

    http://www.videolan.org/developers/libaacs.html

    There's a good article:

    https://wiki.archlinux.org/index.php/BluRay

  • weedlight
    RE: Skype Microphone Doesnt Work
    Assumed your camera isn't running try as root in your favorite shell: sudo modprobe v4l To solve audio setup, edit the file '~/.asoundrc' and put something like following in it: pcm.pulse { type pulse } ctl.pulse { type pulse } pcm.!default { type pulse } ctl.!default { type pulse }
    Link to this post 25 Aug 13

    Assumed your camera isn't running try as root in your favorite shell:
    sudo modprobe v4l

    To solve audio setup, edit the file '~/.asoundrc' and put something like following in it:

    pcm.pulse {
    type pulse
    }
    ctl.pulse {
    type pulse
    }
    pcm.!default {
    type pulse
    }
    ctl.!default {
    type pulse
    }

  • weedlight
    Hi
    My name is Joël Krähemann and I'm writing an audio sequencer. It's called Advanced Gtk+ Sequencer for short ags. It's a lifetime project and I investigated much time into it. Please have a look at [url=http://sourceforge.net/p/ags]http://sf.net/p/ags[/url] if you're an enthousiast, too. Currently I'm working on its super threaded version. Have a nice day.
    Link to this post 03 Jul 13

    My name is Joël Krähemann and I'm writing an audio sequencer. It's called Advanced Gtk+ Sequencer for short ags. It's a lifetime project and I investigated much time into it. Please have a look at http://sf.net/p/ags if you're an enthousiast, too.

    Currently I'm working on its super threaded version.

    Have a nice day.

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board