Hi, all,
I know that I can use gcc or sunstudio to compile C code which is
generated by valac,
I just want to know that is there any compiler dependency,
for example, gcc extension, c99 support,
any requirement for gcc version or sunstudio version?
__
Looks like I spoke too soon. The attached program emits a wrong output:
** Message: thread.vala:43: main thread 14350
** Message: thread.vala:31: thread 14352
** Message: thread.vala:21: thread 14351
** Message: thread.vala:31: thread 14352
** Message: thread.vala:21: thread 14352
** Message: thre
Ok, I just tried the following program:
=
void* thread_func_1()
{
var loop = new MainLoop();
async_func_1();
loop.run();
return null;
}
void* thread_func_2()
{
var loop = new MainLoop();
async_func_2()
If I do the same thing with an Idle, the behavior is significantly
different, as the block data is not destroyed as soon as the run()
function is left. Why is that?
Well working example:
class HHH : Object {
public void run() {
string test = "test";
Idle.a
The problem gets worse, as soon as I use a class variable:
class HHH : Object {
private ThreadFunc f;
public int t;
public void run() {
t = 4;
string test = "test";
try {
f = ()=> { Thread.usleep(1000);
Am Donnerstag, den 14.01.2010, 01:27 +0100 schrieb Jiří Zárevúcky:
> Michael 'Mickey' Lauer píše v Čt 14. 01. 2010 v 00:48 +0100:
> > Jörn's mail about threads and closures reminded me about a problem I
> > wanted to highlight here.
> >
> > The addition of async functions in Vala is a very great f
Michael 'Mickey' Lauer píše v Čt 14. 01. 2010 v 00:48 +0100:
> Jörn's mail about threads and closures reminded me about a problem I
> wanted to highlight here.
>
> The addition of async functions in Vala is a very great feature, however
> I wonder how this could work with multiple threads? As far
Hi Łukas
Thanks for your reply! This somehow does not work as soon as I add
another thread.
class HHH : Object {
private ThreadFunc f;
public void run() {
string test = "test";
try {
f = ()=> { print("in thread : %s \n", test
Jörn's mail about threads and closures reminded me about a problem I
wanted to highlight here.
The addition of async functions in Vala is a very great feature, however
I wonder how this could work with multiple threads? As far as I know,
the continuation is scheduled to be an idle callback against
JM writes:
> Hi all
> I just played around with closures as thread functions. I'm not sure if
> this example is supposed to work, but at least it compiles.
>
>
> class HHH : Object {
> public void run() {
> string test = "test";
> try {
> Th
Hi all
I just played around with closures as thread functions. I'm not sure if
this example is supposed to work, but at least it compiles.
class HHH : Object {
public void run() {
string test = "test";
try {
Thread.create( ()=> { pr
Hi,
i'm trying mysql bindings now, and it doesn't work for me,
r...@centos-54-64-minimal ~/develop/vala # valac --pkg mysql mysql2.vala &&
./mysql2
mysql2.vala:10.19-10.33: error: `Mysql.Database' does not have a default
constructor
Database mysql = new Database ();
Got it to work with: PKG_CONFIG_PATH, somehow libsoup/glib2 lies in
/usr/lib, and system on lib64, but now it's ok, seems to me.
Thanks, anyway ;)
> Please try this:
> LD_DEBUG=libs server
> and look at the output.
> Cem Eliguzel
> On 01/13/2010 12:30 AM, Denis Kuzmenok wrote:
>> Hi, i'm n
Please try this:
LD_DEBUG=libs server
and look at the output.
Cem Eliguzel
On 01/13/2010 12:30 AM, Denis Kuzmenok wrote:
Hi, i'm new to vala, trying examples now,
i've tried this example: http://live.gnome.org/Vala/LibSoupSample
but recieve this error:
r...@centos-54-64-minimal ~/develop/val
Please try this:
LD_DEBUG=libs server
and look at the output.
Cem Eliguzel
On 01/13/2010 12:30 AM, Denis Kuzmenok wrote:
Hi, i'm new to vala, trying examples now,
i've tried this example: http://live.gnome.org/Vala/LibSoupSample
but recieve this error:
r...@centos-54-64-minimal ~/develop/val
Hi, i'm new to vala, trying examples now,
i've tried this example: http://live.gnome.org/Vala/LibSoupSample
but recieve this error:
r...@centos-54-64-minimal ~/develop/vala # valac --pkg libsoup-2.4 --thread
server.vala
r...@centos-54-64-minimal ~/develop/vala # ./server
./server: error while loa
16 matches
Mail list logo