How can you make "Singleton" pattern to "Nton"?
-
How can you make "Singleton" pattern to "Nton"? MEANS: you explicitly define that how many times an static is allowed to initialize?
(you should have posted this in the Question&Answer section. How about using a counter ?
Watched code never compiles.
-
How can you make "Singleton" pattern to "Nton"? MEANS: you explicitly define that how many times an static is allowed to initialize?
You add a counter that tracks the number of instantiations?
-
How can you make "Singleton" pattern to "Nton"? MEANS: you explicitly define that how many times an static is allowed to initialize?
Fail. Programming question.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me
-
Fail. Programming question.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum me, me, me
I expect he considered it a "lifestyle choice" question. ;)
-
How can you make "Singleton" pattern to "Nton"? MEANS: you explicitly define that how many times an static is allowed to initialize?
Shame on us, someone pretty high ranking uni'd this guy. Where is the spirit of helping a new member, who formulated an actual intelligible question but happened to post in the wrong place?
"I have a theory that the truth is never told during the nine-to-five hours. " — Hunter S. Thompson
-
How can you make "Singleton" pattern to "Nton"? MEANS: you explicitly define that how many times an static is allowed to initialize?
-
Shame on us, someone pretty high ranking uni'd this guy. Where is the spirit of helping a new member, who formulated an actual intelligible question but happened to post in the wrong place?
"I have a theory that the truth is never told during the nine-to-five hours. " — Hunter S. Thompson
You must be new here... (and it wasn't me).
-
Shame on us, someone pretty high ranking uni'd this guy. Where is the spirit of helping a new member, who formulated an actual intelligible question but happened to post in the wrong place?
"I have a theory that the truth is never told during the nine-to-five hours. " — Hunter S. Thompson
May 2007 new member?
-
How can you make "Singleton" pattern to "Nton"? MEANS: you explicitly define that how many times an static is allowed to initialize?
ham_gr80 wrote:
How can you make "Singleton" pattern to "Nton"?
Don't use a sync lock and call GetInstance() from mutlithreaded code?
-
May 2007 new member?
New as in, he has only posted one other question, one comment, and five messages. New is not only a measurement of time, it also can mean inexperienced or unaccustomed.
"I have a theory that the truth is never told during the nine-to-five hours. " — Hunter S. Thompson
-
How can you make "Singleton" pattern to "Nton"? MEANS: you explicitly define that how many times an static is allowed to initialize?
-
How can you make "Singleton" pattern to "Nton"? MEANS: you explicitly define that how many times an static is allowed to initialize?
-
Is that not a 'pool'? Like in ConnectionPool or ThreadPool?
"Dark the dark side is. Very dark..." - Yoda ---
"Shut up, Yoda, and just make yourself another toast." - Obi Wan KenobiIn the pool, by idea, you have unlimited number of instances of the object/thread.
There is only one Ashley Judd and Salma Hayek is her prophet! Advertise here – minimum three posts per day are guaranteed.
-
Is that not a 'pool'? Like in ConnectionPool or ThreadPool?
"Dark the dark side is. Very dark..." - Yoda ---
"Shut up, Yoda, and just make yourself another toast." - Obi Wan Kenobi -
(you should have posted this in the Question&Answer section. How about using a counter ?
Watched code never compiles.
-
You add a counter that tracks the number of instantiations?