Menu

#2 class for function calls that are not thread safe

open
None
5
2004-11-26
2004-10-25
No

1. I would like that a class will be added to perform thread unsafe function or method calls in an easy way like I describe it in the request "https://sourceforge.net/mailarchive/forum.php?thread_id=1585197&forum_id=24972" for the TCL thread package.

2. Can the source code "http://groups.google.de/groups?group=comp.programming.threads&selm=40ed1d8f.0311150646.4641684a%40posting.google.com" be improved with your classes?

3. Would you like to support that work or command objects can be sent to a target thread like that can be done with TCL scripts by the function "thread::send"?
http://cvs.sourceforge.net/viewcvs.py/\*checkout*/tcl/thread/doc/html/thread.html?rev=1.15

4. Would you like to add a comparison for the performance of a queue, ring buffer and stack implementation if they manage a single entry as a test case?

Discussion

  • Gianni Mariani

    Gianni Mariani - 2004-11-26

    Logged In: YES
    user_id=39343

    1. I don't really understand what this requires.

    2. What are you trying to achieve exactly ? I think that
    you can use a C++ template to achieve this.

    Somthing like :
    class T;
    T v;
    int r = ThreadSafe(v, T::f, mutex ).Call<int>()( args ... );

    3. I will be implementing action list/thread pool support.

    4. Unit test cases are good. I'd like to add many of them.

     
  • Gianni Mariani

    Gianni Mariani - 2004-11-26
    • assigned_to: nobody --> gianni
     
  • Markus Elfring

    Markus Elfring - 2004-11-27

    Logged In: YES
    user_id=572001

    2. Would you like to encapsulate the use case that is also
    described in the message
    "http://groups.google.de/groups?threadm=OtKbb.127587%24mp.64498%40rwcrnsc51.ops.asp.att.net"
    by C++ means?

    3. That are interesting news.
    But it is not the suggested interface for command objects.

     

Log in to post a comment.

MongoDB Logo MongoDB