Bug 2121

Summary: Timers are not container friendly
Product: ns-3 Reporter: Peter Barnes <pdbarnes>
Component: coreAssignee: Mathieu Lacage <mathieu.lacage>
Status: NEW ---    
Severity: enhancement CC: ns-bugs
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: All   

Description Peter Barnes 2015-05-20 15:36:12 EDT
Send Ns-developers mailing list submissions to
	ns-developers@isi.edu

To subscribe or unsubscribe via the World Wide Web, visit
	http://mailman.isi.edu/mailman/listinfo/ns-developers
or, via email, send a message with subject or body 'help' to
	ns-developers-request@isi.edu

You can reach the person managing the list at
	ns-developers-owner@isi.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Ns-developers digest..."


Today's Topics:

  1. Timers not container-savvy (Tommaso Pecorella)
  2. Re: Timers not container-savvy (Tom Henderson)
  3. Re: Timers not container-savvy (Tommaso Pecorella)


----------------------------------------------------------------------

Message: 1
Date: Mon, 03 Nov 2014 15:11:00 +0100
From: Tommaso Pecorella <tpecorella@mac.com>
Subject: [Ns-developers] Timers not container-savvy
To: ns-dev-list list <ns-developers@isi.edu>
Message-ID: <B135D53A-8229-47F0-832D-FA399C7FFA8D@mac.com>
Content-Type: text/plain;	charset=utf-8

Hi all,

it seems that Timers are not going well with Containers, see the thread here:
https://groups.google.com/forum/#!topic/ns-3-users/o0fDh72m4xo <https://groups.google.com/forum/#!topic/ns-3-users/o0fDh72m4xo>

I guess we need to add some ?fake? copy constructors, what do you think ?

Cheers,

T.


--------------------------------------------------------------

``Stealing from one is plagiarism, 
 stealing from many is research.''
-- Wilson Mizner

--------------------------------------------------------------

Tommaso Pecorella - Ph.D.

Assistant professor
Dpt. Ingegneria dell'Informazione
Universit? di Firenze

CNIT - Universit? di Firenze Unit

via di S. Marta 3
50139, Firenze
ITALY

email: tommaso.pecorella@unifi.it <mailto:tommaso.pecorella@unifi.it>
      tommaso.pecorella@cnit.it <mailto:tommaso.pecorella@cnit.it>

phone : +39-055-4796412
mobile: +39-320-4379803
fax   : +39-055-494569









------------------------------

Message: 2
Date: Mon, 03 Nov 2014 06:41:27 -0800
From: Tom Henderson <tomh@tomh.org>
Subject: Re: [Ns-developers] Timers not container-savvy
To: Tommaso Pecorella <tpecorella@mac.com>
Cc: ns-dev-list list <ns-developers@isi.edu>
Message-ID: <54579417.9070501@tomh.org>
Content-Type: text/plain; charset=UTF-8; format=flowed

On 11/03/2014 06:11 AM, Tommaso Pecorella wrote:
Hi all,

it seems that Timers are not going well with Containers, see the thread here:
https://groups.google.com/forum/#!topic/ns-3-users/o0fDh72m4xo <https://groups.google.com/forum/#!topic/ns-3-users/o0fDh72m4xo>

I guess we need to add some ?fake? copy constructors, what do you think ?

Cheers,

T.


What do you mean by "fake"; do you mean disable the compiler generated 
copy constructor and copy assignment?  We could also define what it 
means for a timer to be copied (especially if the timer is already 
running), and explicitly provide these methods.

- Tom





------------------------------

Message: 3
Date: Mon, 03 Nov 2014 17:10:13 +0100
From: Tommaso Pecorella <tpecorella@mac.com>
Subject: Re: [Ns-developers] Timers not container-savvy
To: Tom Henderson <tomh@tomh.org>
Cc: ns-dev-list list <ns-developers@isi.edu>
Message-ID: <3372E77A-EF97-4F82-9921-CD3DD0C6C5A4@mac.com>
Content-Type: text/plain;	charset=utf-8

Yes, by fake I meant disable the compiler-generated ones.

About copying them in the right way (i.e., copying the inner structures for a running timer), I?m fine with that too.
The only thing to avoid is to have a compilation without errors and an unexpected behaviour (like the one the user found).

Cheers,

T.


On 03 Nov 2014, at 15:41, Tom Henderson <tomh@tomh.org> wrote:

On 11/03/2014 06:11 AM, Tommaso Pecorella wrote:
Hi all,

it seems that Timers are not going well with Containers, see the thread here:
https://groups.google.com/forum/#!topic/ns-3-users/o0fDh72m4xo <https://groups.google.com/forum/#!topic/ns-3-users/o0fDh72m4xo>

I guess we need to add some ?fake? copy constructors, what do you think ?

Cheers,

T.


What do you mean by "fake"; do you mean disable the compiler generated copy constructor and copy assignment?  We could also define what it means for a timer to be copied (especially if the timer is already running), and explicitly provide these methods.

- Tom


--------------------------------------------------------------

``Stealing from one is plagiarism, 
 stealing from many is research.''
-- Wilson Mizner

--------------------------------------------------------------

Tommaso Pecorella - Ph.D.

Assistant professor
Dpt. Ingegneria dell'Informazione
Universit? di Firenze

CNIT - Universit? di Firenze Unit

via di S. Marta 3
50139, Firenze
ITALY

email: tommaso.pecorella@unifi.it
      tommaso.pecorella@cnit.it

phone : +39-055-4796412
mobile: +39-320-4379803
fax   : +39-055-494569









------------------------------

_______________________________________________
Ns-developers mailing list
Ns-developers@isi.edu
http://mailman.isi.edu/mailman/listinfo/ns-developers


End of Ns-developers Digest, Vol 96, Issue 1
********************************************