vicente.botet | 10 May 18:57
Picon

[thread] lockable traits and concepts classes adding proposal

Hello boosters ,

While writtig a synchronization library I have needed some lockable traits 
and concepts.

If you think that these classes are of general use it will be a pleasure for 
me, if Anthony accepts, to included them on the Boost.Thread library. 
Otherwise I will left them in my sync library. For the moment all is defined 
in a sync (as synchronization) namespace and directory but this is without 
importance.

Attached a short introduction as well as the header files.

Of course all this is subject to discusion, naming and file structure 
changes, ...

For each one of the mutex in the thread library, we need to
* make the mutex inherit from the helper lock_traits_base or
* have nested typedefs or
* specialize each one of the traits templates

As an external library I have do this in a non-intrusive way as for example:

template<>
struct timed_interface_tag<boost::mutex> {
    typedef hasnt_timed_interface_tag type;
};
template<>
struct reentrancy_tag<boost::mutex> {
    typedef non_recursive_tag type;
(Continue reading)

vicente.botet | 16 May 22:43
Picon

[thread] lockable traits and concepts classes adding proposal

Hello boosters ,

While writtig a generic library I have needed some lockable traits 
and concepts to be chacked with BCCL.

If you think that these classes are of general use it will be a pleasure for 
me, if Anthony accepts, to included them on the Boost.Thread library. 
Otherwise I will left them in my Sync library. For the moment all is defined 
in a sync (as synchronization) namespace and directory but this is without 
importance.

Attached a short introduction (in quickbook format- sorry I can not attach the html file) as well as the
header files (which should with gcc 3.4 on cygwin)

Of course all this is subject to discusion, naming and file structure 
changes, ...

For each one of the mutex in the thread library, we need to
* make the mutex inherit from the helper lock_traits_base or
* have nested typedefs or
* specialize each one of the traits templates

As an external library I have do this in a non-intrusive way as for example:

template<>
struct timed_interface_tag<boost::mutex> {
    typedef hasnt_timed_interface_tag type;
};
template<>
struct reentrancy_tag<boost::mutex> {
(Continue reading)

Frank Mori Hess | 16 May 23:48
Favicon

Re: [thread] lockable traits and concepts classes adding proposal


On Friday 16 May 2008 16:45 pm, vicente.botet wrote:
> While writtig a generic library I have needed some lockable traits
> and concepts to be chacked with BCCL.
>
> If you think that these classes are of general use it will be a pleasure
> for me, if Anthony accepts, to included them on the Boost.Thread library.

I haven't gone over your proposal in detail, but I for one agree some kind of 
traits for mutex classes would be useful.  I had to do something similar, 
defining a mutex_properties template class and giving specializations for all 
the boost.thread mutex types:

http://www.comedi.org/projects/libpoet/boostbook/doc/boostbook/html/poet/mutex_properties.html

--

-- 
Frank
Anthony Williams | 30 May 12:39
Picon

Re: [thread] lockable traits and concepts classes adding proposal

Frank Mori Hess <frank.hess <at> nist.gov> writes:

> On Friday 16 May 2008 16:45 pm, vicente.botet wrote:
>> While writtig a generic library I have needed some lockable traits
>> and concepts to be chacked with BCCL.
>>
>> If you think that these classes are of general use it will be a pleasure
>> for me, if Anthony accepts, to included them on the Boost.Thread library.
>
> I haven't gone over your proposal in detail, but I for one agree some kind of 
> traits for mutex classes would be useful.  I had to do something similar, 
> defining a mutex_properties template class and giving specializations for all 
> the boost.thread mutex types:
>
> http://www.comedi.org/projects/libpoet/boostbook/doc/boostbook/html/poet/mutex_properties.html

I hadn't thought about it before Vicente's suggestion, but it could be useful.

Anthony
--

-- 
Anthony Williams            | Just Software Solutions Ltd
Custom Software Development | http://www.justsoftwaresolutions.co.uk
Registered in England, Company Number 5478976.
Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Frank Mori Hess | 30 May 20:58
Favicon

Re: [thread] lockable traits and concepts classes adding proposal


On Friday 30 May 2008 06:39 am, Anthony Williams wrote:
> Frank Mori Hess <frank.hess <at> nist.gov> writes:
> > On Friday 16 May 2008 16:45 pm, vicente.botet wrote:
> >> While writtig a generic library I have needed some lockable traits
> >> and concepts to be chacked with BCCL.
> >>
> >> If you think that these classes are of general use it will be a pleasure
> >> for me, if Anthony accepts, to included them on the Boost.Thread
> >> library.
> >
> > I haven't gone over your proposal in detail, but I for one agree some
> > kind of traits for mutex classes would be useful.  I had to do something
> > similar, defining a mutex_properties template class and giving
> > specializations for all the boost.thread mutex types:
> >
> > http://www.comedi.org/projects/libpoet/boostbook/doc/boostbook/html/poet/
> >mutex_properties.html
>
> I hadn't thought about it before Vicente's suggestion, but it could be
> useful.

Now I feel ignored:

http://lists.boost.org/threads-devel/2007/12/0284.php

:)
Anthony Williams | 30 May 21:41
Picon

Re: [thread] lockable traits and concepts classes adding proposal

Frank Mori Hess <frank.hess <at> nist.gov> writes:

> On Friday 30 May 2008 06:39 am, Anthony Williams wrote:
>> Frank Mori Hess <frank.hess <at> nist.gov> writes:
>> > On Friday 16 May 2008 16:45 pm, vicente.botet wrote:
>> >> While writtig a generic library I have needed some lockable traits
>> >> and concepts to be chacked with BCCL.
>> >>
>> >> If you think that these classes are of general use it will be a pleasure
>> >> for me, if Anthony accepts, to included them on the Boost.Thread
>> >> library.
>> >
>> > I haven't gone over your proposal in detail, but I for one agree some
>> > kind of traits for mutex classes would be useful.  I had to do something
>> > similar, defining a mutex_properties template class and giving
>> > specializations for all the boost.thread mutex types:
>> >
>> > http://www.comedi.org/projects/libpoet/boostbook/doc/boostbook/html/poet/
>> >mutex_properties.html
>>
>> I hadn't thought about it before Vicente's suggestion, but it could be
>> useful.
>
> Now I feel ignored:
>
> http://lists.boost.org/threads-devel/2007/12/0284.php

Sorry, I'd forgotten about that post of yours. Too much happens in 6
months.

(Continue reading)

vicente.botet | 14 Jul 17:13
Picon

Re: [thread] lockable traits and concepts classes addingproposal

----- Original Message ----- 
From: "Anthony Williams" <anthony.ajw <at> gmail.com>
To: <boost <at> lists.boost.org>
Sent: Friday, May 30, 2008 12:39 PM
Subject: Re: [boost] [thread] lockable traits and concepts classes 
addingproposal

> Frank Mori Hess <frank.hess <at> nist.gov> writes:
>
>> On Friday 16 May 2008 16:45 pm, vicente.botet wrote:
>>> While writtig a generic library I have needed some lockable traits
>>> and concepts to be chacked with BCCL.
>>>
>>> If you think that these classes are of general use it will be a pleasure
>>> for me, if Anthony accepts, to included them on the Boost.Thread 
>>> library.
>>
>> I haven't gone over your proposal in detail, but I for one agree some 
>> kind of
>> traits for mutex classes would be useful.  I had to do something similar,
>> defining a mutex_properties template class and giving specializations for 
>> all
>> the boost.thread mutex types:
>>
>> http://www.comedi.org/projects/libpoet/boostbook/doc/boostbook/html/poet/mutex_properties.html
>
> I hadn't thought about it before Vicente's suggestion, but it could be 
> useful.

Hi Frank, Anthony,
(Continue reading)

Anthony Williams | 14 Jul 17:35
Picon

Re: [thread] lockable traits and concepts classes addingproposal

"vicente.botet" <vicente.botet <at> wanadoo.fr> writes:

>> Frank Mori Hess <frank.hess <at> nist.gov> writes:
>>
>>> On Friday 16 May 2008 16:45 pm, vicente.botet wrote:
>>>> While writtig a generic library I have needed some lockable traits
>>>> and concepts to be chacked with BCCL.
>>>>
>>>> If you think that these classes are of general use it will be a pleasure
>>>> for me, if Anthony accepts, to included them on the Boost.Thread
>>>> library.
>>>
>>> I haven't gone over your proposal in detail, but I for one agree
>>> some kind of
>>> traits for mutex classes would be useful.  I had to do something similar,
>>> defining a mutex_properties template class and giving
>>> specializations for all
>>> the boost.thread mutex types:
>>>
>>> http://www.comedi.org/projects/libpoet/boostbook/doc/boostbook/html/poet/mutex_properties.html
>>
>> I hadn't thought about it before Vicente's suggestion, but it could
>> be useful.
>
> Hi Frank, Anthony,
>
> Have you taken the time to see my proposal? It will be a pleasure for
> me to know what do you think.

The current implementation of boost.thread provides
(Continue reading)


Gmane