10 More Discussions You Might Find Interesting
1. Programming
hi,
so I am familiar with visual studio for windows, I was wondering if there's that kind of IDE for linux that I can use to make an application...
thanks! (2 Replies)
Discussion started by: h0ujun
2 Replies
2. Shell Programming and Scripting
Hi,
Newbie to Linux needing some help with scripting, here. I've written a script that allows easily shutting down, rebooting, or exiting to terminal mode via a Dialog menu after logging out of X-server. In my .bash_profile I have startx followed by running my script, shutdownmenu.sh, and it... (1 Reply)
Discussion started by: Pop45398
1 Replies
3. UNIX and Linux Applications
Hello. I need upgrade memcached. This software is installed throuth yum. In official repositories isn`t newest version of memcached, but this one is vulnerable. So looks like I need built it from source, but I dont really want to install c libraries un compilers on system.
1.) So can I compile... (0 Replies)
Discussion started by: jabalv
0 Replies
4. Programming
I'm trying to do some cleanup (write open files) when Linux shuts down. I thought the right method would be to trap SIGTERM and do the necessary processing. Here's my sample code:
#include <stdio.h> // for File I/O
#include <signal.h> // for signals
#include <unistd.h> // for sleep()
void... (6 Replies)
Discussion started by: whatisron
6 Replies
5. Advertise with Us
Optiver US LLC is a worldwide market maker and derivatives trading firm with offices in Chicago, Amsterdam and Sydney. Attracting very ambitious, talented and results-oriented individuals to become members of a highly selective trading application engineering team. This position is a primary... (0 Replies)
Discussion started by: Barb S.
0 Replies
6. AIX
Hi All,
I am currently facing new problem of migrating C(c language) application from AIX machine to Linux machine. We are using GCC to compile the source code..
But facing with the compilation issues, with lot of GCC C libs differing between AIX box to Linux box...
Pls help me... (3 Replies)
Discussion started by: karthikc
3 Replies
7. Linux
tcp communication application
i have an application which run in
1)
while()
{in
}
and listens for some request
When a request comes to create a file(containing some data fetch from somewhere)
but i also want to start some timer that after 10/20 min delete that file
But i don't know how... (0 Replies)
Discussion started by: tryit
0 Replies
8. UNIX for Dummies Questions & Answers
i need to develop application which continuously wait for a request from multiple host and on receiving a request on that need to create a log file and after 30 mins delete that file
I am new to socket programming so could anyone help me on this.
How to continuously listen for a request
How... (0 Replies)
Discussion started by: tryit
0 Replies
9. SCO
Hello Valued Members,
I was wondering if there are any Linux, BSD, versions that can run SCO 5.0.6 applications without much modification? I was looking into purchasing a copy of Caldera Openlinux, the last version, but wanted to ask if there are any other options of a newer variant. I am also... (8 Replies)
Discussion started by: stay0ut
8 Replies
10. Programming
I need port Win32 console application, which was developed with MS Visual Studio 6.0 (without MFC using) into Linux. What is the best way to port project? Are there any standard tools or decisions?
Thank you in advance,
Sergey (0 Replies)
Discussion started by: Sergeyy
0 Replies
pod::Prima::Timer(3) User Contributed Perl Documentation pod::Prima::Timer(3)
NAME
Prima::Timer - programmable periodical events
SYNOPSIS
my $timer = Prima::Timer-> create(
timeout => 1000, # milliseconds
onTick => sub {
print "tick!
";
},
);
$timer-> start;
DESCRIPTION
Prima::Timer arranges periodical notifications to be delivered in certain time intervals. The notifications are triggered by the system,
and are seen as "Tick" events. There can be many active Timer objects at one time, spawning events simultaneously.
USAGE
Prima::Timer is a descendant of Prima::Component. Objects of Prima::Timer class are created in standard fashion:
my $t = Prima::Timer-> create(
timeout => 1000,
onTick => sub { print "tick
"; },
);
$t-> start;
If no `owner` is given, $::application is assumed.
Timer objects are created in inactive state; no events are spawned. To start spawning events, <start()> method must be explicitly called.
Time interval value is assigned using the <::timeout> property in milliseconds.
When the system generates timer event, no callback is called immediately, - an event is pushed into stack instead, to be delivered during
next event loop. Therefore, timeout value is not held accurately, and events may take longer time to pass. More accurate timing scheme, as
well as timing with precision less than a millisecond, is not supported by the toolkit.
API
Properties
timeout MILLISECONDS
Manages time interval between "Tick" events. In set-mode call, if the timer is in active state ( see "get_active()", the new timeout
value is applied immediately.
Methods
get_active
Returns a boolean flag, whether object is in active state or not. In the active state "Tick" events are spawned after "::timeout" time
intervals.
get_handle
Returns a system-dependent handle of object
start
Sets object in active state. If succeed, or if the object is already in active state, returns 1. If the system was unable to create a
system timer instance, 0 is returned.
stop
Sets object in inactive state.
Events
Tick
A system generated event, spawned every "::timeout" milliseconds if object is in active state.
AUTHOR
Dmitry Karasik, <dmitry@karasik.eu.org>.
SEE ALSO
Prima, Prima::Object
perl v5.14.2 2009-02-24 pod::Prima::Timer(3)